Color Converter

Paste a colour in any common CSS format — #hex, rgb(), hsl(), hwb(), or one of 148 named colours — and see it normalised into every other format. Click a chip to copy it. Live, in your browser, no upload.

Accepts #RGB, #RGBA, #RRGGBB, #RRGGBBAA, rgb(), rgba(), hsl(), hsla(), hwb(), or one of 148 named CSS colours. Alpha values come through as rgba() / hsla() / 8-digit hex / hwb(... / α).

Output formats — click a chip to copy

CSS colour formats — quick reference
  • Hex#RGB (3-digit), #RGBA (4-digit), #RRGGBB (6-digit), #RRGGBBAA (8-digit). Leading # is optional.
  • rgb()rgb(13, 110, 253) or rgba(13, 110, 253, 0.5). Also CSS Color 4: rgb(13 110 253 / 0.5). Channels can be 0–255 or 0–100%.
  • hsl()hsl(216, 98%, 52%) or hsla(216, 98%, 52%, 0.5). Also hsl(216 98% 52% / 0.5). Hue accepts deg, rad, grad, or turn.
  • hwb()hwb(216 0% 0%). CSS Color 4 only. Optional alpha: hwb(216 0% 0% / 0.5).
  • Namedrebeccapurple, tomato, cornflowerblue … 148 entries. Case-insensitive.
  • Anything with alpha < 1 comes out as rgba(), hsla(), 8-digit hex, and hwb(... / α).