OddCalc
OddCalc/Tools

Color Converter

Hex to RGB and HSL, plus the inverse.

How it works

Enter #RRGGBB to get RGB, HSL and the inverse of each RGB channel (255 − R/G/B).

Worked example with the defaults

This example is calculated from the page defaults. Change the form to update the live result.

Hex colour#e8532e
Calculated result#E8532E · Original
RGBrgb(232, 83, 46)
HSLhsl(12, 80%, 55%)
Inverse#17ACD1

RGB, HSL and inverse colour

Enter a three- or six-digit RGB hex value to get RGB, HSL and channel-inverted colour.

Limits and assumptions

  • Inverse means 255 minus each RGB channel; it is not the same as a hue-wheel complementary colour.
  • Only opaque RGB is supported; alpha, wide-gamut colour and display calibration are excluded.
  • The luminance row is a simple HSL lightness value, not WCAG relative luminance.

Common questions

How is three-digit hex expanded?

Each digit is doubled, so #abc becomes #aabbcc.

Is the inverse colour readable for text?

Not necessarily. Check contrast with the WCAG luminance method.

Same category