Color Converter
Convert colours between HEX, RGB, HSL, HSV, CMYK and OKLCH, and check contrast.
How it works
- 1Type or pick a colour.
- 2Copy the format you need.
- 3Optionally compare it with a second colour for contrast.
Features
- Reads HEX (3, 4, 6 or 8 digits), rgb(), hsl() and all 148 CSS colour names.
- Converts to HEX, RGB, HSL, HSV, CMYK and OKLCH.
- WCAG 2 contrast ratio with AA and AAA results.
- Transparency supported.
Frequently asked questions
Is CMYK here print-accurate?
It's the simple formula without a colour profile. Ask your printer for their profile for exact results.
What contrast do I need?
4.5:1 for normal text and 3:1 for large text to meet WCAG AA.
Related tools
Palette GeneratorBuild a colour palette from one colour using colour theory: analogous, complementary, triadic and more.Color ExtractorFind the main colours of an image, with HEX, RGB and HSL codes.CSS FormatterBeautify CSS with consistent indentation using Prettier.Base64 DecoderDecode Base64 (standard or URL-safe) back to text.