convertersSign in to save
AuthDatabase

Color Converter (HEX, RGB, HSL, OKLCH)

Convert colors between HEX, RGB, HSL, and OKLCH with live WCAG contrast scoring. Save your library when signed in.

Open the toolBuild your ownSign in to save your work and revisit it anywhere.
color-converter.genmb.comOpen in new tab

Convert colors between HEX, RGB, HSL, and OKLCH with a live preview swatch and WCAG AA/AAA contrast badges against white and black. Sign in to keep a personal color library you can re-use across projects.

When to use it

  • 1Translating a HEX from a designer into HSL for theming or a CSS variable.
  • 2Checking accessibility contrast against light and dark backgrounds before shipping.
  • 3Building a personal palette of approved brand colors with consistent codes across formats.

How it works

  1. 1

    Pick or type a color

    Use the native color picker, the eyedropper (where supported), or type a value into any of the four format fields.

  2. 2

    Read the contrast

    WCAG AA/AAA badges next to the swatch show whether your color passes for normal and large text on white or black.

  3. 3

    Save it

    Sign in to save the color to your library with a name. Click any saved color to restore it.

Frequently asked

Why OKLCH and not HSV?

OKLCH is perceptually uniform - equal numerical changes feel like equal visual changes - and is the format CSS Color 4 recommends for theming.

How does contrast checking work?

We compute the relative luminance ratio per WCAG 2.1. AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.

Want a tool just like this, but yours?

Every tool on this page was generated by GenMB from a single prompt. Describe yours and ship it to your own subdomain in minutes.

Build with GenMB

Related tools