🎨Color Converter

Convert between RGB/HEX/HSL colors

#3b82f6
HEX
#3b82f6
RGB
rgb(59, 130, 246)
HSL
hsl(217, 91%, 60%)
HSV
hsv(217, 76%, 96%)
CMYK
cmyk(76%, 47%, 0%, 4%)
Contrast Check
WCAG Fail
Contrast Ratio: 3.68:1(Insufficient)
White Text
Black Text

How to Use

The Color Converter converts between HEX (#rgb / #rrggbb), RGB, HSL, HSV, CMYK and basic colour names. Enter any one format to get all the others, with a live preview and WCAG contrast check; unrecognised input shows an inline error and keeps the last valid colour.

FAQ

What is the difference between HEX and RGB?

HEX uses six hexadecimal digits (e.g., #FF0000), RGB uses three 0-255 values. They can be converted between each other.

What is HSL color?

HSL stands for Hue, Saturation, and Lightness, which more intuitively represents how humans perceive color.

Which color formats are supported?

Five formats plus basic names: HEX (including #rgb shorthand), RGB (rgb()/rgba() input), HSL (hsl() input), HSV, and CMYK, plus names like red or navy. Unsupported input shows an inline error instead of blanking the result panel.

What is the contrast check for?

It computes the contrast ratio against a white background with the WCAG level, and recommends whether text should be white or black — a quick way to dodge readability problems in web palettes.