UI / UXVisual StylesDiagramBeginner
Color Contrast
KO: 색상 대비 (Color Contrast)·EN: Color Contrast·JA: カラーコントラスト
Measuring luminance difference between foreground elements and backgrounds (WCAG 4.5:1 / 3:1) to ensure legible interfaces for everyone
Table of Contents
Structure Diagram
WCAG 2.1 Contrast Ratio Thresholds (1:1 to 21:1)
(75, 45)WCAG AA (Standard) #3
Quick Answer
What is Color Contrast?
Measuring luminance difference between foreground elements and backgrounds (WCAG 4.5:1 / 3:1) to ensure legible interfaces for everyone. It is a core concept in Visual Styles within UI / UX.
Core Principles
Color Contrast quantifies the relative luminance difference between foreground elements (text, icons, borders) and their background on a scale from 1:1 to 21:1.
Under WCAG 2.1 AA, normal body text requires at least 4.5:1, while large text (≥24px regular or ≥18.66px bold) and interactive UI icons/borders require at least 3:1. Strong contrast benefits users with low vision and anyone reading outdoors or on dim displays.
Practical Takeaways
- Never rely on hue alone: Pair red/green error or success states with clear icons, labels, or patterns so color-blind users receive the exact same signal.
- Audit muted text and placeholders: Light gray helper copy often dips below 3:1. Reserve subtle styling for non-essential decoration and keep readable labels ≥4.5:1.
- Build palettes in OKLCH: Designing color ramps along OKLCH's perceptually uniform lightness axis makes hitting predictable contrast targets far easier across both light and dark themes.
Notable Examples
- Automated token audits: Checking foreground/background pairs against 4.5:1 in Figma plugins and CI pipelines.
- Text-over-image scrims: Adding a subtle dark gradient behind white hero copy so legibility holds across dynamic photos.
- Redundant status badges: Combining color fills with icons (
✓,!,▲) in financial and monitoring dashboards.