MomentA little color theory

A CLEARER WAY TO SEE COLOR

Same color.
A different language.

Move between HEX, RGB and HSL.
Find a pairing that is easier to read.

Color converter

Opaque sRGB colors

3 or 6 digits, with or without #.

YOUR COLOR#78DBC5One color. Three ways to use it.
HEX
RGB
HSL

Ready to explore.

PUT TWO COLORS TOGETHER

Text contrast checker

WCAG 2.2
Small details.
Clear words.

This is how your text and background work together.

CONTRAST RATIO

—

Pass/fail uses the full calculation, not the displayed rounded ratio. This checks color contrast only, not complete accessibility.

A LITTLE CONTEXT

Pick with purpose.

Three ways to describe a color

HEX writes the red, green and blue channels as hexadecimal pairs. RGB uses values from 0 to 255. HSL describes hue, saturation and lightness. For example, pure red is #FF0000, rgb(255, 0, 0), and hsl(0, 100%, 50%).

Try the color where it lives

A bright accent can look great as a background but be difficult to read as small text. Use your converted color in the contrast checker, then compare it with the actual surface behind it.

Leave a little breathing room

A pair just above a contrast threshold may still feel harder to read with a thin font. Aim comfortably above the minimum and check your design at its real size.

The details behind the swatch.

Which colors can I convert?

This tool supports opaque, 8-bit sRGB colors. HEX accepts 3 or 6 digits. Alpha transparency, named colors, CMYK and wide-gamut color spaces are not supported. Flatten a transparent color against its actual background before checking contrast.

Why can HSL values change slightly?

RGB channels are whole numbers. HSL values are displayed to two decimal places, so converting the rounded HSL back may differ by one channel step. Hue has no visible effect when saturation is zero.

What do AA and AAA mean here?

For text, WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text. AAA requires 7:1 and 4.5:1 respectively. Large text means at least 24 CSS pixels, or about 18.67 pixels when bold. Font weight, images, gradients and other accessibility needs require separate review.

Sources: W3C minimum contrast guidance and enhanced contrast guidance.

How is contrast calculated?

Each sRGB channel is converted to a linear value, then weighted to find relative luminance. The lighter luminance plus 0.05 is divided by the darker luminance plus 0.05. Black on white is 21:1; identical colors are 1:1.

Privacy

Colors are processed only in this browser tab. They are not saved or uploaded. This page uses no advertising or analytics scripts and requires no account. The hosting provider may process connection information to serve and secure the site. Any future advertising and required consent controls will be disclosed before activation.