Color Converter
Convert between HEX, RGB, HSL, HSV and CMYK colour codes, and see a preview and the contrast ratio.
DeveloperResult
Colour
#635BFF
- HEX
- #635BFF
- RGB
- rgb(99, 91, 255)
- HSL
- hsl(243, 100%, 68%)
- HSV
- hsv(243, 64%, 100%)
- CMYK
- cmyk(61%, 64%, 0%, 0%)
- Contrast on white
- 4.7:1 (AA)
- Contrast on black
- 4.47:1 (AA (large))
How does it work?
The Color Converter shows the color you enter in HEX, RGB, HSL, HSV and CMYK all at once, along with a preview swatch. Each two-digit group in a HEX code converts one color channel (red, green, blue) to a number from 0-255; HSL and HSV express the same color as hue, saturation and lightness/value; CMYK is the cyan-magenta-yellow-black percentages used in printing. The tool also calculates the WCAG contrast ratio against white and black — 4.5:1 or higher is enough for normal text (AA), 3:1 or higher for large text, and 7:1 or higher reaches level AAA. Example: enter '#635BFF' and the tool shows it as RGB(99, 91, 255), HSL(243°, 100%, 68%), HSV(243°, 64%, 100%) and CMYK(61%, 64%, 0%, 0%); the contrast ratio comes out to 4.70:1 (AA) on white and 4.47:1 (large text only) on black. Use this tool to find the RGB or CSS value behind a HEX color from a design, check whether a text color meets WCAG accessibility standards against a background, or find the CMYK equivalent of a color for a print job.
Formula
HEX → RGB: each pair of digits is one channel (63 → 99) Contrast = (L1 + 0.05) ÷ (L2 + 0.05), L: relative luminance
Example
Colour: #635BFF → Colour: #635BFF
Similar Tools
Toolbox Get your Toolbox ready.
Star the tools you use most and, with an account, they follow you to every device.
Frequently asked questions
What does the contrast ratio tell me?
How readable text is on a background. WCAG asks for at least 4.5:1 for normal text (AA) and 3:1 for large text; 7:1 is level AAA.
How is a 3-digit HEX read?
Each digit is doubled: #6CF is the same as #66CCFF.
What's the difference between RGB and HSV?
RGB defines a color as amounts of red, green and blue light; HSV expresses the same color as hue, saturation and value (brightness) — lightening or darkening a color is more intuitive in HSV.
Can I type a color name?
Yes, it recognizes common English and Turkish color names like 'red' or 'kırmızı' and converts them to the matching HEX code.
What happens if I enter a semi-transparent color?
If you enter a color with an alpha channel, like rgba() or an 8-digit HEX (#RRGGBBAA), the tool reads the transparency value too and includes it in the RGB and HSL output.