What does a color converter do?
The same color can be written in many ways. A screen color may be a HEX code like #3498db, an RGB triple like rgb(52 152 219), or HSL, which describes hue, saturation and lightness. A converter shows the same color in each format so you can use whichever your tool needs.
This tool accepts any CSS color, including HEX with 3, 4, 6 or 8 digits, rgb(), hsl(), oklch(), oklab() and common names such as rebeccapurple. It shows HEX, RGB, HSL, HSB, CMYK, OKLCH and OKLAB with a swatch. OKLCH and OKLAB are perceptual spaces, designed so that equal steps look equal to the eye.
How to use the Color Converter
- Type or paste a color.
- Choose upper or lower case for HEX letters.
- Read the swatch and every format.
- Copy the one you need.
Conversions between screen formats are exact to the rounding shown, but colors on different screens and in print can still look different. CMYK here is a simple formula, not a print profile.