Color Converter
Convert HEX, RGB and HSL — edit any one and the rest follow. Nothing is uploaded or stored.
Convert
Enter a colour first.
Result
HEX—
RGB—
HSL—
Nearest CSS colour—
Rounding can shift a colour by 1 unit (RGB) or 1% (HSL).
Convert a whole palette
Paste one colour per line — HEX, rgb(…), hsl(…) or a CSS colour name.
The converted palette will appear here.
How the conversion works
HEX ↔ RGB. Each pair of hex digits is one channel: #B8860B is R=184, G=134, B=11.
RGB ↔ HSL. Hue is the angle around the colour wheel (0–360°), saturation is how vivid the colour is (0–100%), lightness is how bright (0–100%). The standard formulas are used, with values rounded to whole numbers.
Nearest name. The closest of the 148 CSS colour names, by straight-line distance in RGB space.
Local only. All work happens in your browser. Nothing is uploaded, stored or shared.