Skip to main content

Code & Data

Colour converter

Convert between HEX, RGB and HSL and get a plain description with contrast ratios.

  1. 1Fill in the values
  2. 2Click Run
  3. 3See results instantly

Limits

  • Accepts HEX (3, 4, 6 or 8 digits), rgb()/rgba() and hsl()/hsla(). Named colours such as "red" are not recognised.
  • Only sRGB is handled; modern CSS colour spaces (lab, oklch) are not.

Ask the AI chat

The AI chat can run this tool for you. Try:

  • “hex to rgb #ff8800”
  • “rgb to hex rgb(255, 136, 0)”
  • “convert color hsl(32, 100%, 50%)”