Web & Accessibility

Colour Format Converter

Convert a colour between HEX, RGB, HSL and HSV, with a live swatch.

Four ways to write a colour

  • HEX — #0DA8EF, two hex digits each for red, green, blue. Compact; the CSS default.
  • RGB — rgb(13, 168, 239), the same channels as 0–255 numbers.
  • HSL — hue (0–360°), saturation and lightness (%). Intuitive for making a colour lighter or less saturated.
  • HSV — hue, saturation, value/brightness; common in colour pickers and design tools.

Enter any of HEX, RGB or HSL and this shows all four at once with a live swatch, so you can grab whichever your CSS, design tool or brand guide wants. It converts through RGB internally and runs entirely in your browser.

These calculators run entirely in your browser — nothing you type is sent anywhere. Results are estimates for planning; validate against your vendor's documentation before you buy or deploy.