Choose a color and copy its HEX, RGB, or HSL value.
The Hex Color Picker helps you choose a color and copy its HEX code. The page also shows RGB and HSL values so you can use a notation that fits your stylesheet or design handoff.
Keep the leading # when using a HEX code in CSS. The page does not show dedicated controls for palette suggestions, recent colors, output letter case, or alpha. Options inside a native color picker may vary by browser.
The eight-digit value #ff000080 is an example of red at approximately 50% opacity. This is a CSS syntax reference, not a promise that the picker accepts or outputs an alpha channel.
CSS also provides formats and functions such as oklch(), color-mix(), and color(). They are separate from the HEX, RGB, and HSL outputs shown here.
Choosing a brand color does not establish readable contrast. Check the foreground and background together. The cited WCAG contrast targets are 4.5:1 for body text and 3:1 for large text. A color picker alone does not perform that check.
How to Use Hex Color Picker - Choose and Copy Color Codes
Use Pick a color to choose the shade you need. Available native picker controls depend on your browser.
Read the HEX, RGB, and HSL representations and choose the one your project uses.
Use the adjacent copy control, then test the color against its actual foreground or background.
Choose a color and copy its HEX, RGB, or HSL value.
Tool Use:
662Added:
Jul 15, 2024Type:
Free ToolPrivacy:
Client SideColor name finder for HEX, RGB, RGBA, HSL, or a color picker. Find the closest CSS-named match and copy the color codes you need.
Color contrast checker for foreground and background colors. Review the contrast ratio, AA and AAA text thresholds, and the visual preview.