Design System Color Validator
Check color tokens for contrast, naming, and light/dark coherence before they spread through Figma and code. Paste CSS variables, Tailwind colors, or token JSON below and review the report.
Design System Color Validator
Validate your color tokens for accessibility, consistency, and semantic coherence
What gets checked
- Accessibility — text and UI contrast against AA/AAA-style thresholds
- Semantics — purpose-based names and consistent families
- Harmony / structure — obvious clashes and incomplete state sets
- Theme mapping — whether light and dark roles still make sense together
Contrast targets (WCAG 2.1)
- Normal text: 4.5:1 AA, 7:1 AAA
- Large text: 3:1 AA, 4.5:1 AAA
- Many UI components / graphics: about 3:1
Fine-tune failing pairs in the Contrast Checker or the UI Element Color Auditor.
Common fixes
- Text fails contrast — adjust lightness; keep hue if brand locks it.
- Inconsistent names — adopt one pattern (for example primary / primary-hover) via the Color Tokens Generator.
- Clashing accents — explore relationships in the Color Harmony Visualizer.
Frequently asked questions
What formats can I validate?
CSS custom properties, Tailwind config snippets, design-token JSON, or manually named colors. Normalize messy imports first if values arrive in mixed formats.
Which contrast thresholds are checked?
WCAG 2.1-style targets: 4.5:1 (AA) / 7:1 (AAA) for normal text, 3:1 / 4.5:1 for large text, and about 3:1 for many UI components and graphics.
Why validate semantic names?
Names like primary and danger travel better than blue-3. Consistent naming keeps themes and states (hover, focus, disabled) discoverable in code reviews.
Does a pass mean I can skip manual QA?
No. Automated checks catch ratio and structure issues. Still preview tokens on real components—especially translucent overlays and text on images.
What should I do after fixing failures?
Re-run validation, export tokens, and smoke-test in a theme preview or Tailwind config export so light and dark stay aligned.
Related tools
Related tools
Related tools
Related Color and Design Tools
8pt Grid Visualizer
Visualize and work with 8pt grid systems
Accessible Color Combinations
Find accessible color combinations
Accessible Font Size Checker
Check font sizes for accessibility
Animated Gradient Background
Create animated gradient backgrounds
Baseline Grid Generator
Generate baseline grids for typography
Border Radius Previewer
Preview and test border radius values
Color Blindness Simulator
Simulate color blindness for accessibility testing
Color Harmony Visualizer
Visualize color harmony schemes
Color Naming Tool
Generate names for colors
Color Palette Generator
Generate beautiful color palettes