Color Selector & Palette Studio
Start from any HEX color, build editable harmonies and light/dark roles, inspect WCAG contrast pairs, and export real CSS, JSON and creator-ready palette boards.
Local processing · No account required · Copy and export
Click a swatch to copy. Edit HEX, lock, reorder, duplicate or remove below. The displayed label uses measured black/white contrast against its fill.
These are illustrative component previews using actual exported tokens, not complete website templates.
WCAG 2.2 relative luminance, exact foreground/background pairs. 4.5:1 for ordinary AA text; 3:1 for large AA text. These measurements are not blanket accessibility certification.
| Use / pair | Ratio | AA text | Suggestion |
|---|
How to use Color Selector & Palette Studio
- Enter a six-digit HEX base color or use the picker. Select a harmony such as analogous, complementary or monochromatic.
- Review editable swatches, lock colors you wish to preserve, then assign foreground/background roles in the UI themes tab. Inspect measured contrast in the Contrast checks tab.
- Set a safe CSS prefix. Export current CSS, reopenable JSON, SVG/PNG creator boards, or a six-file ZIP with a contrast report.
When to use this tool
Create a starting palette for a dashboard, presentation or interface. Export CSS variables for a stylesheet or JSON for design tooling, then test the actual text/background pairs.
Color harmony is a starting point for a design system
Hue offsets create related color families while lightness adjustments spread the swatches across the palette. Monochromatic palettes keep the hue and vary lightness. These generated colors are useful candidates for tokens, but a harmonious set does not guarantee that every pair works as foreground and background. Evaluate the actual pairs in the contrast checker.
Worked example
CSS variable prefix: brand
Example token syntax:
:root {
--brand-1: #123456;
--brand-2: #234567;
}
Actual values depend on the selected base color and harmony. Assign component roles to candidate palette colors
- Choose your base color and harmony. For an authored dashboard exercise, use prefix
dashboardto create five numbered candidate custom properties. - Assign text, surface and border roles deliberately. A palette index does not automatically establish a semantic role.
- Review each intended foreground/background pair. A readable black/white label on a swatch does not prove contrast between two palette colors.
- Export CSS variables for stylesheets or JSON for the base, harmony and ordered colors. Keep the selection settings with design notes.
Changing the base or harmony can change every candidate. Do not replace established product tokens solely because a generated set looks harmonious.
The V2 role editor and contrast matrix are functional. See the specialist Color Contrast Checker or Gradient Generator for additional work.
Limits and output checks
The preview generates five candidate colors, not a complete accessible theme. The black/white label contrast ratio describes each swatch's label against its own fill. Random color selection is for exploration and is not intended for security-sensitive randomness.
Reference: CSS custom properties.
Frequently asked questions
Does every generated color meet WCAG?
No. Accessibility depends on the colors used together and their role. Check foreground/background pairs separately.
Can I use the exported names in CSS?
Use a simple prefix beginning with a letter, followed by letters, digits, underscores or hyphens. The generator exports numbered custom properties and named light/dark role variables.
What is included in JSON export?
The native JSON project records ordered swatches, lock state, roles, two themes, CSS prefix and board settings, and can be reopened in this studio.
A candidate palette needs pair-by-pair review
Choose a base color and harmony, then inspect the five candidate swatches. Export CSS properties or JSON for the next design step.
Scope of this workflow
The palette is not a complete accessible theme. Swatch-label contrast does not establish contrast for every foreground/background combination.
Color Contrast Checker — WCAG AA & AAA · All developer tools · Privacy policy · Contact PixelOkay