Skip to content
ChromaBrew
Go Pro
Design systemsBy Opeyemi Olorunfemi

From brand color to full design system: a worked example

A real 50–950 scale, a five-hue palette, light/dark tokens and the contrast results all derived from one seed color, #6d28d9 — with the exact hex values.

The seed: #6d28d9

The worked example starts with a single violet: #6d28d9. In OKLCH that resolves to a lightness of about 0.49, a chroma around 0.24 and a hue near 292°. Every value in this breakdown is what ChromaBrew actually generates from that one input with no manual tuning — you can reproduce the whole walk on the design system page and see identical hexes.

The pipeline has five stages: an 11-step scale, a harmony palette, semantic tokens, paired light/dark themes, and an accessibility matrix. Each stage consumes the previous one.

Stage 1 — the 50–950 scale

The scale generator walks OKLCH lightness from 0.977 at step 50 down to 0.268 at step 950 while keeping the hue, producing the eleven steps. The source color sits at 700 (the generator's representative step), which is slightly dark of middle — the seed is a strong but not neon violet. The exact scale: 50 #f7f6ff, 100 #edeaff, 200 #dfd9ff, 300 #cdc3ff, 400 #b5a2ff, 500 #9f7fff, 600 #8c56ff, 700 #6d28d9, 800 #5e1dbe, 900 #49079a, 950 #2d0066.

Notice the chroma curve: the tints (50–300) are pale but stay cool-violet rather than going grey, and the darks (800–950) stay saturated enough that 950 at #2d0066 is clearly indigo, not black.

:root {
  --brand-50:  #f7f6ff;
  --brand-100: #edeaff;
  --brand-200: #dfd9ff;
  --brand-500: #9f7fff;
  --brand-600: #8c56ff;
  --brand-700: #6d28d9;
  --brand-800: #5e1dbe;
  --brand-900: #49079a;
  --brand-950: #2d0066;
}

Stage 2 — the harmony palette

With a five-swatch analogous strategy, the seed drives a small family: the primary at #6d28d9, a cool neighbour at #004be4, a warm neighbour at #9900ab, then lighter variants at #276cff and #864cf9. Analogous strategy keeps the palette calm and recognisably related — good for a brand system where complementary shock would fight the violet.

When secondary and accent aren't chosen explicitly, the engine derives them by role rather than borrowing from that strip: both land on split-complement offsets from the primary, so this violet gets a deep bronze supporting colour at #463100 and a vivid green accent at #008e02 — clearly distinct from the primary and from each other. The theme step then adapts each per mode for contrast, which is why the light secondary token resolves to #422e00 rather than repeating the seed verbatim.

Stage 3 and 4 — semantic tokens in light and dark

Each mode derives 31 semantic tokens from the scale and palette. In light mode, the background resolves to #fdfcff (near-white with a violet breath), the surface to #fdfdff, foreground text to #13101e, and the primary button to #6d28d9 with a white label. Hover and active darken in-step: #6311cb then #5700b8, same hue, deeper value.

Dark mode inverts both luminosity and approach: the background drops to #0b0a0f, the primary lifts to #8c56ff (a lighter, brighter violet reads better on near-black), and its label flips to dark #0e0d14. The dark theme's primary-hover moves *lighter* (#9871ff) — the same pressed-direction rule, reversed for mode.

  • Light: background #fdfcff · surface #fdfdff · foreground #13101e
  • Light: primary #6d28d9 → hover #6311cb → active #5700b8
  • Dark: background #0b0a0f · surface #15141a · foreground #edebf6
  • Dark: primary #8c56ff → hover #9871ff → active #844bf4
  • Status: success #2b9338 light / #6bc670 dark · danger #c94c49 / #ff847d

Stage 5 — the contrast matrix

The generator grades ten key pairings in each mode against WCAG: body text, muted text, card text, primary/secondary buttons, accent element and the four status badges. For this violet seed, all twenty checks pass AA. Body text scores 18.33:1 in light and 16.73:1 in dark; the primary button label lands 7.10:1 in light (better than AAA normal) and 4.50:1 in dark — comfortably AA, exactly at the cusp before AAA.

The interesting non-obvious result is the accent element in light mode at 5.27:1 — it passes AA but not AAA, because the green fill #007e01 sits close enough to its label. That's a deliberate, surfaced trade-off: accents are allowed to be visually louder than body text, and the matrix records the consequence rather than hiding it. The deep secondary, meanwhile, clears AAA at 12.94:1.

  • Body text / background: 18.33:1 light · 16.73:1 dark
  • Muted text / background: 8.16:1 light · 7.90:1 dark
  • Primary button: 7.10:1 light · 4.50:1 dark
  • Secondary button: 12.94:1 light (AAA) · Accent element: 5.27:1 light (AA, not AAA) — an accepted trade-off
  • Result: 20/20 pairings pass AA

Related free tools

Want to apply this right now? Open the color palette generator and try it with your own brand color — free, no sign-up.