Typography reference
Contrast and typography
Luminance contrast helps text remain distinguishable from its background. Font size, weight and viewing conditions also matter.
Try the visual comparison
Dark gray and #767676 are rendered on white to compare luminance contrast at the displayed size. Color and viewing conditions affect legibility.
Example A
Read this label
color:#20242a;
background:#ffffff;Example B
Read this label
color:#767676;
background:#ffffff;These examples use browser/system fonts unless explicitly noted. Actual rendering and font feature support vary with your environment.
What to check in your project
Use the contrast calculator on the actual foreground and background, including hover states and text over images. Passing a ratio does not guarantee every thin font is comfortable to read.
Explore the related tool or guide →