Color Picker

Pick any color and instantly get HEX, RGB, HSL, and CMYK values. Copy with one click.

HEX #7C3AED
RGB rgb(124, 58, 237)
HSL hsl(262, 83%, 58%)
CMYK cmyk(48%, 76%, 0%, 7%)
CSS color: #7C3AED;
Color Name
blueviolet
Luminance
0.07
vs White
9.05:1
vs Black
2.32:1
Who this tool is for:

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.

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

FormatShownConverts back to
RGBrgb(124, 58, 237)#7C3AED
HSLhsl(262, 83%, 58%)#7C3BED
CMYKcmyk(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.

Frequently Asked Questions

Only the notation. HEX writes the red, green and blue channels as three pairs of base-16 digits; RGB writes them as decimal numbers from 0 to 255. #7C3AED and rgb(124, 58, 237) are the same color, and converting between them loses nothing.
This tool shows HSL as whole numbers, which cannot pin down every one of the 16,777,216 hex colors. hsl(262, 83%, 58%) converts back to #7C3BED, not #7C3AED. Computed with the tool's own code over 2,396,746 colors, 89.2% changed after a whole-number HSL round trip, by up to 4 levels in a channel.
No. They come from a simple formula on the RGB values with no printer or paper profile, rounded to whole percent. #7C3AED gives cmyk(48%, 76%, 0%, 7%), which converts back to #7B39ED. Use them as a starting point and confirm final values with your printer.
Only as a guide. They are rounded to two decimals, so #0071F4 shows 4.5:1 on white while its real ratio is 4.4983:1, which fails AA for normal text. The contrast checker compares the unrounded ratio and gives the correct pass or fail.
No. It has no alpha value and does not output 8-digit hex, oklch or other CSS Color 4 formats. To add transparency, write it yourself, for example rgb(124 58 237 / 50%).
Related Tools

Get fresh reads straight to your inbox

Get notified when we publish new articles. Unsubscribe anytime.