Enter one color and get its code in every format at once. Handy when moving between design tools and code.
✓Free
✓No sign-up
✓No upload
✓CSS & Tailwind code
🔒 Your images and colors never go to a server — every calculation happens on your device (in your browser).
How to use
Enter a color code or pick one with the color picker. #7c3aed, rgb(124 58 237), hsl(…), oklch(…) and names like red all work.
HEX, RGB, HSL, HSV, CMYK, OKLCH and LAB values are calculated instantly.
Press “Copy” next to the value you need.
What each code is for
HEX and RGB describe screen colors by the strength of red, green and blue, and are the most common in web and design tools. HSL describes hue, saturation and lightness, which makes it easy to adjust by hand. CMYK is the ink mix for printing.
OKLCH is a color space matched to how bright colors look to people, so colors with the same lightness value look about equally bright. It works directly in modern CSS.
CMYK is a reference
The CMYK here is a simple calculation from the screen color. Actual print colors depend on paper, ink and the printer's color profile, so get a proof from your printer for important work.
FAQ
Do color names work?
Yes. CSS color names like red or rebeccapurple are converted.
What about transparency (alpha)?
Colors are calculated as opaque for now.
Can I share a color by link?
Yes. The color is added to the address (#7c3aed), so sending the link opens the same color.