About the hex, rgb & hsl converter
One input, every representation. The converter reads whichever format you paste rather than asking you to say which it is, because in practice you have copied it from somewhere and do not want to classify it first.
Alpha survives the conversion. An eight-digit hex or an rgba() value keeps its transparency in every other format, which several converters quietly drop.
Frequently asked questions
- Is anything I enter sent to a server?
- No. Every calculation runs inside your browser, and nothing you type or pick is uploaded, stored or logged. The page keeps working with the network disconnected.
- Which formats can I paste?
- HEX in three, four, six or eight digits, with or without the hash. rgb() and rgba() in the comma syntax or the modern space syntax with a slash before alpha. hsl() and hsla(). And the common colour names.
- Why do I get a slightly different value converting back?
- Because HSL and HSV are stored as percentages of a hue circle and RGB as whole numbers from 0 to 255, so some values have no exact counterpart. The conversions here are exact for every value a colour picker produces; a hand-typed HSL with decimals may land a unit away.
- What is the alpha channel in a hex colour?
- The last two digits of an eight-digit hex, from 00 for fully transparent to ff for fully opaque. #ff000080 is red at about 50%.
Related web tools
How your data is handled
Everything happens on your device. There is no upload, no storage and no logging. Closing the tab clears everything you entered.