About Color converter
HEX · RGB · HSL · OKLCH · Lab · CMYK
How to use
Paste any color in HEX, RGB, HSL, HSV or CMYK and copy the equivalent in every other format. The converter updates live as you type.
Color converter
Every color format describes the same thing in a different language: HEX for stylesheets, RGB for screens and code, HSL for building palettes, CMYK for print. Pick the conversion you need and get the exact value, a live preview and the formula behind it.
All converters
The four color formats
What is HEX?
A HEX code is a six-digit hexadecimal number that stores the red, green and blue channel of a color behind a leading #. Each pair of digits covers one channel, from 00 to FF, which gives the same 16.7 million colors as RGB in a shorter notation. HEX is the default in CSS, design tools and brand guidelines.
What is RGB?
RGB describes a color as three channels of light, each from 0 to 255. It mirrors how screens work: all three at 255 give white, all at 0 give black. RGB is the right choice when you need to calculate with a color, and rgba() adds transparency.
What is HSL?
HSL splits a color into hue (0–360°), saturation (0–100%) and lightness (0–100%). Because each part matches the way people describe color, HSL is the easiest format for building tints, shades and consistent palettes.
What is CMYK?
CMYK is the four-ink model used in printing: cyan, magenta, yellow and key (black), each as a percentage. Ink subtracts light instead of emitting it, so bright screen colors often look duller once printed.