Color Picker
About this tool
Pick a color and read it in three notations at once: HEX, RGB and HSL. The values are derived from each other in the page, and the last color you chose is remembered.
How to use
- Use the color control, or type a HEX value into the HEX field.
- Press Enter or leave the field to apply a typed value.
- Copy the notation you need from the row next to it.
Typed input accepts #3b82f6, 3b82f6 or the
three-digit form #abc, which is expanded to
#aabbcc. Anything else is rejected with “Invalid HEX”.
Example
HEX #3b82f6 RGB rgb(59, 130, 246) HSL hsl(217, 91%, 60%) HEX #abc -> #aabbcc RGB rgb(170, 187, 204)
Limits
- HSL is rounded to whole degrees and whole percent, so converting back to HEX can land a step or two away from where you started.
-
Only HEX input is parsed.
rgb(),hsl()and named colors such asrebeccapurpleare not accepted in the HEX field. - There is no alpha channel. The tool works with opaque colors only.
FAQ
Why does HSL not convert back to the same HEX?
The HSL triple is displayed as rounded integers. Small rounding differences survive the trip back, so treat HSL as a readable approximation.
Is the color stored?
Yes. The last HEX value is written to localStorage and
restored on reload.
Can I enter a color from a design system?
Paste its HEX value; anything the browser accepts as a color but is not three or six hex digits has to be converted first.