COLOR PICKER & CONVERTER
Type a color as HEX, RGB or CMYK and the other formats update as you go. You can type with or without commas, and CMYK can be entered as decimals or whole numbers.
Color formats
#.rgb() wrapper are optional.%.Live preview
Click the swatch (or press Enter while it’s focused) to toggle the label between black and white text for a quick contrast check. Everything runs in your browser — nothing you type is uploaded or stored.
Coded by 2RE with help from DeepSeek.
How to use the picker
- Type in any field. HEX, RGB or CMYK — the other two update as you go.
- Commas are optional.
58, 110, 165,58 110 165andrgb(58,110,165)all work. So does bare digits with no brackets. - Short hex is fine.
#39fexpands to#3399FF, the same way CSS does it. - CMYK takes percentages or plain numbers.
65 33 0 35and65% 33% 0% 35%mean the same thing here. - Or pick by name. The dropdown lists every CSS colour name, from aliceblue to rebeccapurple.
- Check the swatch. The panel shows the colour as a background; click it (or focus it and press Enter) to flip the sample text between black and white.
A field with a typo flashes red and keeps the last valid colour — nothing breaks and nothing is submitted.
Reading the output
When you only need one value, take the HEX. It is what goes in a stylesheet, a brand document or a design token, and it is unambiguous.
Use RGB when you are writing canvas or animation code, or when an app asks for three numbers rather than a code.
The CMYK values come from a plain formula, not a press profile, so treat them as a starting point rather than the number to send to a printer.
The black/white toggle on the swatch is an eyeball check for contrast, not a measurement. If you are choosing text and background colours for real, aim for a contrast ratio of at least 4.5:1 for body text and 3:1 for large text, and confirm it with a contrast checker — roughly the same colour on both sides of the toggle is a warning sign.
Frequently asked questions
#3A6EA5, 3A6EA5 or
58, 110, 165 and it will resolve. What will not work is an eight-digit
hex with transparency (#3A6EA5FF) — this tool has no alpha channel,
so drop the last two digits and add the transparency in your own CSS.
Related tools
Browse 583 greens with their HEX, RGB and CMYK values, and copy the one you want.
The rest of the colour collection, plus the HEX vs RGB vs CMYK explainer.