Accessibility tool
Evaluate opaque sRGB color pairs and check text and non-text contrast thresholds.
Large text preview
Normal text preview for this foreground and background.
14.63:1
Contrast ratio (unrounded value determines passes)
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
Non-text contrast (3:1): Pass
.sample {
color: #1E293B;
background: #FFFFFF;
}Contrast uses sRGB relative luminance. Normal text AA and AAA require 4.5:1 and 7:1; large text requires 3:1 and 4.5:1. Non-text UI components and graphical objects use 3:1 when the criterion applies. Ratios are compared before display rounding.
Suggestions interpolate the foreground toward white or black, then verify the emitted 8-bit hex color. A passing pair cannot establish accessible typography, meaning, focus visibility, or real rendered behavior by itself. Gradients, transparency, and layered contexts need separate checks against their rendered backgrounds.
See WCAG contrast minimum, enhanced contrast, and non-text contrast. Explore colors with the OKLCH Palette. For system-level token mapping across themes, see the Accessible Color Systems Guide.