Skip to main content
>_devtools

Accessible Color Suggestions

Give a foreground and background; get the nearest foreground that passes WCAG AA or AAA by shifting OKLCH lightness, plus the APCA score.

What it does

Enter foreground and background colors and select a WCAG target to check contrast. The tool suggests nearby foreground colors that meet the chosen ratio.

Example

#595959 on #ffffff -> contrast above 7:1 and an AA pass

Limits and behavior

  • Contrast ratios are calculated from the entered sRGB colors.
  • A passing text pair does not ensure that icons, focus indicators, or other UI states meet contrast requirements.