UtilHub

Contrast Checker

Check WCAG contrast ratios for any color pair or a list of HEX backgrounds - get AA / AAA pass/fail badges for normal and large text.

Foreground & Background Contrast Checker

Set a foreground and background color to check contrast for a specific pair.

#5820B1Have a wonderful day.
Contrast Ratio 7.66:1
AAAA LargeAAAAAA Large

Batch Contrast Checker

Input or paste up to 10 HEX colors (one per line or comma-separated) to see all four contrast combinations for each.

6 colors detected

#FF7A59
#FF7A59Have a wonderful day.

Color on white

Contrast Ratio 2.57:1
AAAA LargeAAAAAA Large
#FF7A59Have a wonderful day.

Color on black

Contrast Ratio 8.18:1
AAAA LargeAAAAAA Large
#FF7A59Have a wonderful day.

White on color

Contrast Ratio 2.57:1
AAAA LargeAAAAAA Large
#FF7A59Have a wonderful day.

Black on color

Contrast Ratio 8.18:1
AAAA LargeAAAAAA Large

#8B5CF6
#8B5CF6Have a wonderful day.

Color on white

Contrast Ratio 4.23:1
AAAA LargeAAAAAA Large
#8B5CF6Have a wonderful day.

Color on black

Contrast Ratio 4.96:1
AAAA LargeAAAAAA Large
#8B5CF6Have a wonderful day.

White on color

Contrast Ratio 4.23:1
AAAA LargeAAAAAA Large
#8B5CF6Have a wonderful day.

Black on color

Contrast Ratio 4.96:1
AAAA LargeAAAAAA Large

#24292E
#24292EHave a wonderful day.

Color on white

Contrast Ratio 14.67:1
AAAA LargeAAAAAA Large
#24292EHave a wonderful day.

Color on black

Contrast Ratio 1.43:1
AAAA LargeAAAAAA Large
#24292EHave a wonderful day.

White on color

Contrast Ratio 14.67:1
AAAA LargeAAAAAA Large
#24292EHave a wonderful day.

Black on color

Contrast Ratio 1.43:1
AAAA LargeAAAAAA Large

#FDA4AF
#FDA4AFHave a wonderful day.

Color on white

Contrast Ratio 1.89:1
AAAA LargeAAAAAA Large
#FDA4AFHave a wonderful day.

Color on black

Contrast Ratio 11.11:1
AAAA LargeAAAAAA Large
#FDA4AFHave a wonderful day.

White on color

Contrast Ratio 1.89:1
AAAA LargeAAAAAA Large
#FDA4AFHave a wonderful day.

Black on color

Contrast Ratio 11.11:1
AAAA LargeAAAAAA Large

#1E40AF
#1E40AFHave a wonderful day.

Color on white

Contrast Ratio 8.72:1
AAAA LargeAAAAAA Large
#1E40AFHave a wonderful day.

Color on black

Contrast Ratio 2.41:1
AAAA LargeAAAAAA Large
#1E40AFHave a wonderful day.

White on color

Contrast Ratio 8.72:1
AAAA LargeAAAAAA Large
#1E40AFHave a wonderful day.

Black on color

Contrast Ratio 2.41:1
AAAA LargeAAAAAA Large

#34D399
#34D399Have a wonderful day.

Color on white

Contrast Ratio 1.92:1
AAAA LargeAAAAAA Large
#34D399Have a wonderful day.

Color on black

Contrast Ratio 10.92:1
AAAA LargeAAAAAA Large
#34D399Have a wonderful day.

White on color

Contrast Ratio 1.92:1
AAAA LargeAAAAAA Large
#34D399Have a wonderful day.

Black on color

Contrast Ratio 10.92:1
AAAA LargeAAAAAA Large

WCAG 2.1 Contrast Requirements

LevelNormal textLarge text / UI
AA4.5:13:1
AAA7:14.5:1

Large text is defined as 18pt (24px) or larger, or 14pt (approximately 19px) bold. UI components and graphical elements must meet AA Large (3:1).

How to Use This Tool

Use the Foreground & Background section to check the contrast of any specific color pair. Or paste HEX values into the Past Hex Colors box to check up to 10 colors against white and black simultaneously. The tool accepts values with or without the leading # and handles 3-digit shorthand (e.g. #fff).