UTILITIES NEWBIE

Color converter and contrast checker

Convert one opaque sRGB color and check its contrast against a solid background. Choose the source format explicitly.

Input

HEX: #RGB or #RRGGBB. RGB: rgb(12, 34, 56) or 12, 34, 56. HSL: hsl(210, 50%, 40%) or 210, 50%, 40%.

Leave blank for white (#ffffff). Only opaque #RGB or #RRGGBB values are accepted.

Output

Ready. Nothing is saved automatically.

Worked example

Input and settings

Source format: HEX
Source color: #000000
Background: #ffffff

Result

HEX: #000000
RGB: rgb(0, 0, 0)
HSL: hsl(0, 0%, 0%)
Background: #FFFFFF
Contrast ratio (approx.): 21:1
Normal text AA (4.5:1): PASS
Normal text AAA (7:1): PASS
Large text AA (3:1): PASS
Large text AAA (4.5:1): PASS

Opaque black on opaque white has a contrast ratio of 21:1, meeting the WCAG AA and AAA thresholds for normal and large text. The tool uses the unrounded ratio for every threshold decision.