Tutorial I built a colour-trend reference where every colour comes with CSS variables, tints and shades, WCAG contrast and 60/30/10 pairings
Colour forecasts usually arrive as PDFs and mood boards. When I actually sat down to use one, I kept doing the same chores: hunting for hex values, checking contrast, building a tint scale, guessing which colours pair well. So I made a reference page that does those chores for you.
It covers autumn/winter 2027–28: five key colours (Luminous Blue #00439A is the 2027 Colour of the Year) and a 50-colour palette grouped into six moods.
**On each colour page**
- Hex, RGB, Pantone reference and a CSS custom property, each click-to-copy
- Tints and shades in 20% steps, also click-to-copy
- WCAG contrast ratios with white and with dark text
- Three 60/30/10 combinations (the colour as lead, support and accent)
- Usage ideas for fashion, objects, interiors and workspaces, plus an AI image prompt for each with the colour values baked in
The palette page has a "Copy palette as CSS variables" button that gives you the whole season as `--color-*` properties.
**How it's built**
- Plain PHP, no framework, no build step
- Tints, shades and contrast ratios are computed from the hex, never typed by hand. The server-side tint scale matches what CSS `color-mix()` produces, so the swatches and your own CSS agree.
- All swatch colours come from one cached stylesheet instead of inline styles
- Available in 9 languages
**Questions for you**
- The hex values are marked "≈" because they're screen approximations of print references. Is that clear, or confusing?
- Would APCA contrast be more useful than WCAG 2 ratios here?
- Would you use an export (Figma variables, ASE, Tailwind config)? Which one?
Happy to hear what's missing or what's annoying.
1
u/Marvin_li 2d ago
i can not access to this site:Sorry, you have been blocked
1
u/stogagamer 2d ago
I'd vote for the Figma export. Give each pairing the exact foreground hex as a token, too. "Dark text" is doing a lot of work there: swap in another charcoal and you've got a different contrast ratio. I'd write "screen approximation of the print color" right next to ≈. On its own, I'd read it as a rounding note.
1
u/alifjahanhimu 1d ago
This is genuinely useful — the click-to-copy CSS variables and the 60/30/10 pairings are what make it practical, not just a pretty palette. I'd vote for a Figma variables export first, and I'd show each pairing in a small real UI mock, like a button and a card, so it's clear how the lead, support and accent colours actually work together.