Color Converter
Convert between HEX, RGB, HSL color formats.
How to Use Color Converter
Paste a HEX code, an rgb() string, or an hsl() value into the single input field.
Click the "Process" button to convert it into every supported format at once.
Use the copy button beside HEX, RGB, RGBA, HSL, HSV, or CMYK to grab the one you need.
Check the WCAG contrast ratio against black and white before shipping the colour.
Features
Frequently Asked Questions
Related Tools
JSON Formatter
Format and beautify JSON data with proper indentation.
JSON Validator
Validate JSON data and find syntax errors.
JSON Minifier
Minify JSON by removing whitespace and formatting.
HTML Formatter
Format and beautify HTML code.
HTML Minifier
Minify HTML code to reduce file size.
CSS Formatter
Format and beautify CSS code.
About Color Converter
Design tools speak HEX, CSS speaks RGB or HSL, print speaks CMYK, and every conversion between them is a place where a colour quietly drifts. The Color Converter takes a single value in any supported format and shows you all of the others at once, so a Figma token can be matched against an existing stylesheet without guesswork.
Technically it is one colour represented four ways. HEX is RGB written in base 16, two digits per channel. RGB is the raw 0 to 255 channel triple. HSL describes hue as an angle plus saturation and lightness as percentages, which is how humans naturally reason about a colour, and it is why designers reach for it. HSV is the same idea with value instead of lightness. CMYK is a subtractive model used for print.
Beyond the conversions, the tool reports the nearest CSS named colour, which helps when handing work to someone who will describe a colour in words rather than numbers, and it calculates WCAG contrast ratios against black and white so you can sanity-check whether text will be readable before you commit to it in a build.
When to Use This Tool
- Matching a brand colour from a Figma or Photoshop file to a CSS value
- Converting a print CMYK swatch into a value for a web build
- Checking whether a colour meets WCAG contrast requirements for body text
- Converting a colour picked in a native OS picker into a stylesheet token
- Sending a designer a colour reference in the format they actually use