Skip to content

Color Tools

Convert, inspect and check the accessibility of colors.

2 tools in this category

Colour conversion and contrast checking

Convert a colour between HEX, RGB, HSL, HSB and CMYK, and check text and background pairs against the WCAG 2.1 contrast thresholds.

Contrast that matches the specification

Contrast Checker linearises each sRGB channel, computes relative luminance with the 0.2126, 0.7152 and 0.0722 weights, and compares the two as (lighter + 0.05) / (darker + 0.05). AA needs 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.

Results are not rounded up to a pass. Grey #777777 on white is about 4.48:1 and fails AA for normal text. The checker works with opaque colours, so check the actual composited background when you use transparency, gradients or images.

Conversions

Color Converter shows HEX, RGB, RGBA, HSL, HSLA, HSB and CMYK together, with alpha carried into RGBA and HSLA. CMYK here is a simple device-independent formula; printers use colour profiles, so ask your printer for exact values.

Recommended Workflows

Checking brand colours for accessibility

  1. Enter the text and background colours in Contrast Checker.
  2. Read the ratio and the AA and AAA results for normal and large text.
  3. If it fails, lower or raise the lightness of one colour and check again.

Frequently Asked Questions

What contrast does body text need?

At least 4.5:1 for WCAG 2.1 Level AA. Large text, meaning 18 pt or 14 pt bold and above, needs 3:1.

Does the contrast checker handle transparent colours?

No. Enter the colour as it appears after blending with the background; transparency changes the effective contrast.

Is the CMYK value print-ready?

Treat it as a starting point. Print output depends on the printer’s colour profile and paper.

Other categories