Color Picker
Pick any color and instantly get HEX, RGB, HSL, and CMYK values. Copy with one click.
Best for: Pulling a precise hex from a colour wheel, and converting the result to RGB, HSL or CMYK for print or CSS use
Limitations: Picks from the on-screen wheel rather than sampling anywhere on your desktop, and CMYK values are approximate rather than press-accurate
Best suited for: Designers choosing a colour from scratch who need the value in several formats at once
What Each Format Is For
Click the square to open your browser's color selector. Every value updates as you move it, and each Copy button copies one line.
- HEX: the six-digit code used in CSS and most design tools.
- RGB: the same red, green and blue channels as decimal numbers from 0 to 255. For transparency, add an alpha after a slash, as in rgb(124 58 237 / 50%); MDN notes the older comma form is still accepted.
- HSL: hue in degrees, saturation and lightness in percent, handy for nudging a color lighter or darker.
- CMYK: ink percentages for a print handoff. They come from a plain formula on the RGB values with no printer profile, so treat them as a starting point.
- CSS: a ready color declaration using the hex.
- Color Name: the nearest of the 141 CSS named colors by straight-line distance in RGB, from the same list and code as the Color Name Finder. It is the closest name, not always a match:
#7C3AEDshows blueviolet, which is#8A2BE2.
The page has no field to type a code into, no alpha value, and no 8-digit hex, oklch or other CSS Color 4 output. To convert a code you already have, use the HEX to RGB converter.
Worked Example: #7C3AED
| Format | Shown | Converts back to |
|---|---|---|
| RGB | rgb(124, 58, 237) | #7C3AED |
| HSL | hsl(262, 83%, 58%) | #7C3BED |
| CMYK | cmyk(48%, 76%, 0%, 7%) | #7B39ED |
RGB is exact, because hex is the same three channels written in base 16. HSL and CMYK are rounded to whole numbers, so typing them back in lands one level off in one or two channels.
How Far Rounding Can Move a Color
Computed with this tool's own conversion code over 2,396,746 colors (every seventh 24-bit color), 89.2% came back as a different hex after a round trip through whole-number HSL, by up to 4 levels in one channel (#009CED returns as #0098EB), and 87.3% after whole-number CMYK. If the exact color matters, keep the hex or RGB. How these numbers were computed.
The Contrast Figures Are Rounded
The vs White and vs Black cards show the WCAG contrast ratio rounded to two decimals, with no pass or fail. #0071F4 shows 4.5:1 against white, but its unrounded ratio is 4.4983:1, below the 4.5:1 AA minimum for normal text. Of 5,592,406 colors computed (every third 24-bit color), 3,081 show 4.5:1 or more against white while falling short. For a verdict, use the contrast checker, which compares the unrounded ratio.