Real-time conversion between HEX, RGB, RGBA, HSL and HSV, with a color picker, common palette and contrast preview — copy any color format with one click. Runs fully in your browser; nothing is uploaded.
Every colour on a screen is ultimately three channel values, but there are three common notations, and each is better at a different job:
| Format | Example | Best for |
|---|---|---|
| HEX | #4f46e5 | Copy-paste between design tools and CSS; the most compact |
| RGB / RGBA | rgb(79 70 229) | Programmatic manipulation and alpha blending |
| HSL / HSLA | hsl(243 76% 59%) | Building palettes by hand — see below |
HSL splits a colour into hue (0–360° around the wheel), saturation (0–100%, grey to vivid) and lightness (0–100%, black to white). That maps onto how designers actually work:
L and leave H alone.S.H by 180°.Doing the same in RGB means hand-solving for three channels at once, which is why palettes built in HSL tend to look more coherent.
An extra pair of hex digits at the end encodes opacity: #4f46e580 is the brand colour at 50% alpha (80 = 128/255). The older rgba() form does the same with a decimal value. Beware that alpha blends with whatever is behind the element — an alpha colour over a dark background will not look like the same colour over a light one.
A colour that looks fine in isolation can fail accessibility once it sits on a background. WCAG sets the bar at a contrast ratio of 4.5:1 for body text and 3:1 for large or bold text. Check any text/background pair before shipping — it is one of the cheapest accessibility wins available.