Brand Color System Generator
Build a consistent brand color system from one to three HEX colors. Preview light and dark interfaces, audit WCAG contrast, and export usable CSS variables or JSON design tokens.
Choose brand colors
Start with a primary HEX color. Enable optional secondary or accent colors as needed; use three or six HEX digits.
The 50–950 scale uses OKLCH with chroma reduced when colors fall outside sRGB. The closest shade preserves your exact input HEX; it is not always step 500.
Semantic roles and contrast checks
Review light and dark color roles, customize them independently, and rerun WCAG checks without changing your original brand colors.
Quick check for selected mode (9 pairs)
Contrast checks
Regular text aims for at least 4.5:1 under WCAG AA. Essential control boundaries use 3:1 where relevant; failed pairs are clearly marked.
Full audit · light and dark
Review text contrast (4.5:1) and key UI contrast (3:1) in both modes. Color vision simulation is a design advisory, not a WCAG pass/fail criterion. The 3:1 edge target applies only when that boundary is essential.
The OKLab color-vision comparison is approximate, not a color-vision or WCAG certification. Test focus, hover, disabled controls and text on actual images separately. Always pair status colors with labels or icons.
Build a consistent interface
One color system across interface elements in both themes.
Export your color system
Download CSS custom properties or JSON design tokens. JSON preserves color scales, light/dark semantic roles, and edits so you can import them again.
CSS for websites
Enter valid colors to generate CSS.
JSON Design Tokens (light and dark)
Enter valid colors to generate JSON.
Links transfer the selected base colors only. Download JSON to keep customized roles and both themes. Your colors are processed locally in your browser.
How to build a brand color system for a website
- Select your brand colors: enter your logo or brand HEX color. Leave secondary and accent disabled if you only have one color.
- Review roles: switch between light and dark, audit text, buttons, links and borders. Press Enter or leave a role field to apply changes, then rerun contrast checks.
- Export: download CSS and use
--brand-primary, or download JSON to preserve both role sets for later editing. Test the finished interface.
For example, with primary color #2A6DF4, the tool generates steps 50–950 and recommends text colors for primary buttons. Verify the actual foreground/background pair instead of judging contrast by shade alone.
When should I use a brand color system?
Use one when building a landing page, dashboard, online store or app that needs consistent colors. Review status colors in context, test on devices and check WCAG before release.
Last updated: November 7, 2026 · Methods and data sources
Color terms (optional)
- WCAG
- Web Content Accessibility Guidelines; contrast ratios help assess readability.
- Semantic color role
- A color assigned to a purpose such as text, background, buttons, or warnings.