Hex to RGB & CMYK Color Converter
Convert Hex, RGB and CMYK in all directions – with color pickers, live preview and WCAG contrast check.
1. Color input
Enter a color using Hex, RGB or CMYK – or pick it – all formats stay in sync.
3- or 6-digit hex, with or without “#”.
Change any set (Hex, RGB or CMYK) – the others update automatically.
2. Preview & copy
Preview your color, see tints and shades, then copy the formats you need.
CSS formats
#3152FF
rgb(49, 82, 255)
cmyk(81%, 68%, 0%, 0%)
color: #3152FF;
background-color: #3152FF;
Individual channels
Ideal for InDesign, Illustrator & print workflows – click to copy a single channel value.
Accessibility: contrast check
Pick a contrast color to see if your combination passes WCAG 2.1 AA / AAA.
Used as text color on top of your main color in the preview below.
How this color converter works
- Pick a base color with Hex, RGB, CMYK – or use the color picker. The other fields update automatically.
- Copy the format you need: full CSS strings for code or single RGB/CMYK channels for layout and print apps.
- Choose a contrast color and check the WCAG AA/AAA badges. Green “Passed” is safe, red “Failed” should be avoided.
All conversions and contrast checks run locally in your browser. No color data is sent to the server.