HEX to RGB Color Converter
Free color converter: HEX to RGB, HSL and CMYK, with color picker and WCAG contrast check.
WCAG: 4.5:1 or more for normal text, 3:1 for large text.
Convert HEX, RGB, HSL and CMYK Colours
Paste a colour in any format — #0070E0, rgb(0, 112, 224), hsl(210, 100%, 44%) or a name like tomato — and get every other format instantly. Pick colours visually, copy values with one click, and check whether text in that colour is readable on white or black backgrounds according to WCAG accessibility guidelines.
Colour Formats
| Format | Used for |
|---|---|
| HEX | Websites, CSS, design tools |
| RGB | Screens, CSS, image editing |
| HSL | Easy colour adjustments in CSS |
| CMYK | Printing (approximate conversion) |
Get colours from a photo with the Image Color Picker, mix colours with the Color Mixer, or build backgrounds with the CSS Gradient Generator.
Frequently Asked Questions
How do I convert HEX to RGB manually?
Split the HEX into three pairs and convert each from base 16 to base 10. For #0070E0: 00 = 0, 70 = 112, E0 = 224, so rgb(0, 112, 224).
Is the CMYK value exact for printing?
No. Screen-to-print conversion depends on the printer profile; use it as a starting point.
