Color converter
Convert between HEX, RGB, and HSL, and copy the value you need.
Output appears here.
Tips & common uses
- Accepts 3-digit or 6-digit HEX (#417053), rgb(65 112 83), and hsl(144 26% 35%) and outputs all three CSS formats alongside a live swatch preview.
Frequently asked questions
When should I use HSL instead of HEX in CSS?
HSL makes it much easier to derive hover states, muted shades, and dark-mode variants by adjusting lightness and saturation while keeping the hue constant.