A live colour format converter that shows the same colour as HEX, RGB(A), HSL(A) and HWB at the same time. Pick a colour with the native picker, nudge the red, green and blue sliders, set an alpha value, or paste an existing value from your stylesheet — every other format recalculates instantly, and each one has its own copy button. It is built for front-end developers, UI designers and anyone who keeps a colour in one notation but needs it in another.
How it works
Internally the tool keeps a single source of truth: an RGBA tuple (red, green and blue from 0 to 255, plus an alpha from 0 to 1). Whatever you do — moving a slider, choosing from the picker, or typing into a field — is converted into that tuple, and then every displayed format is derived from it. This avoids the round-trip drift you get when tools chain conversions one after another.
The conversions use the standard colour-space formulas. RGB to HSL finds the maximum and
minimum channel to compute lightness, chroma and hue. HSL to RGB reverses that with the
chroma and hue-sextant method. HWB is derived from the hue plus the proportion of white
(the smallest channel) and black (one minus the largest channel), and converted back by mixing
white and black into the pure hue. When alpha drops below 1, the HEX output switches to its
8-digit form, RGB becomes rgba(), HSL becomes hsla() and HWB uses the / a syntax.
Two extra read-outs help you ship colours with confidence. The WCAG contrast panel shows the ratio of your colour against pure white and pure black, flagging whether it passes AA for text. The channel detail panel breaks out hue, saturation, lightness, whiteness and blackness so you can reason about tints and shades. Save any colour as a swatch and it persists in your browser for next time.
Example
Say your design system stores brand indigo as #4f46e5. Paste it into the HEX field and the
converter shows rgb(79, 70, 229), hsl(244, 76%, 59%) and hwb(244 27% 10%). Drag the alpha
slider down to 0.5 and the outputs become #4f46e580, rgba(79, 70, 229, 0.5),
hsla(244, 76%, 59%, 0.5) and hwb(244 27% 10% / 0.5). The contrast panel reports about
5.9:1 on white — comfortably passing AA for body text. Click Copy on whichever row your
codebase uses, and you are done.
Every calculation happens locally in your browser; no colour values are ever uploaded.