We audited the colour contrast of our own website this week. Not a client site, not a template: designdensolutions.com as it is served today. The results are uncomfortable in a useful way, and the fix turned out to be embarrassingly close to complete already — sitting in a stylesheet the live site does not serve.

Here is the whole story, with the numbers and the code.

What we measured

Our brand kit specifies the orange as #F25A1B. The site's CSS implements the accent as #FF5200 under four token names. Against white:

Pair Ratio AA target Verdict
#F25A1B on #FFFFFF (brand kit value) 3.36:1 4.5:1 fails for text
#FF5200 on #FFFFFF (shipped value) 3.25:1 4.5:1 fails for text
#FF5200 on #F7F7F5 (our soft background) 3.03:1 4.5:1 fails for text
White text on #FF5200 3.25:1 4.5:1 fails for text
#FF5200 on #111111 5.81:1 4.5:1 passes
#111111 on #FF5200 5.81:1 4.5:1 passes

Ratios are WCAG 2.x relative luminance, computed with the standard formula — no eyeballing, no screenshot sampling. AA needs 4.5:1 for normal text; "large" text (24px regular, or 18.66px and bold) needs 3:1, and non-text UI boundaries need 3:1.

Where the orange actually lands on our pages:

  • 105 eyebrows — 12px, 600 weight, uppercase, orange on white — across all 21 HTML pages. Needs 4.5:1. Gets 3.25:1.
  • 92 primary buttons — 15px, 600 weight, white label on orange — across 21 pages. Needs 4.5:1. Gets 3.25:1.
  • 27 display accents — the large orange phrase in big headings. Needs 3:1. Gets 3.25:1. Passes.
  • Focus outlines — 2px solid orange. Needs 3:1. Gets 3.25:1. Passes.

That last pair matters. The same value that fails as 12px text is legitimately fine as a 2px focus ring. Contrast is not a property of a colour; it is a property of a colour, a size, a weight and a job.

So the accurate statement is not "our orange is inaccessible". It is: we used a fill and boundary orange for running text, at the two places where small type is most common — the eyebrow above every section heading, and the label on every primary button.

Why 4.5:1 exists at all

The ratio is (L1 + 0.05) / (L2 + 0.05) where L is relative luminance: each sRGB channel linearised, then weighted 0.2126 R + 0.7152 G + 0.0722 B. It is a model of perceived lightness difference between the text colour and its background, not a guarantee of readability. Contrast can pass and a page can still be hard to read — small caps with wide letter-spacing, thin fonts, motion, glare, and low-quality panels all cost legibility. But when a pair fails, the text sits below the agreed floor, and for a studio that sells UI work, the floor is the point.

The token bug

The stylesheet that every page loads defines four orange tokens:

:root { --orange: #ff5200; --orange-alt: #ff5200; --orange-ink: #ff5200; /* "ink" promises a text colour */ --orange-btn: #ff5200; /* "btn" promises a label-safe fill */ } 

Four names, one value. The names encode intent — ink for text, btn for a label background — and the values ignore it. grep for the brand hex #F25A1B across our HTML and CSS returns zero hits; the text implementation is a different orange from the brand kit as well.

Then there is the fifth definition. Our article stylesheet, loaded last by three long-form pages, redeclares two tokens:

/* css/articles.css, line 1 */ :root { --orange-ink: #b83b00; --orange-btn: #c13e00; } 

Those values work:

Pair Ratio AA target
#b83b00 on #FFFFFF 5.73:1 passes 4.5
#b83b00 on #F7F7F5 5.34:1 passes 4.5
White on #c13e00 5.31:1 passes 4.5

Hue preserved (within 1.5 degrees of the brand hue by HSL), lightness pulled down until the small text clears 4.5. Someone on this team already did the work and put it in the right layer.

There are two problems with where it sits. First, only three of our pages load css/articles.css, so 18 pages — and the homepage's inlined critical CSS — still get the vivid value for --orange-ink and --orange-btn. Second, and worse: https://www.designdensolutions.com/css/articles.css returns 404 on the live host. The file exists in the repo and in the build output; it was never deployed. So even the three article pages fall back to the vivid orange on production. The fix is real locally and absent live.

That is the deployment lesson: a token fix only exists if the file that carries it is served. We checked with a plain GET and a browser user agent on 30 November 2026 — css/style.css 200, css/articles.css 404.

The fix we prepared (not deployed)

One stylesheet is the source of truth; the other inherits. In css/style.css:

:root { --orange: #ff5200; /* fill and decoration */ --orange-alt: #ff5200; --orange-ink: #b83b00; /* text on light backgrounds: 5.73:1 */ --orange-btn: #c13e00; /* button fill behind white 15px labels: 5.31:1 */ } 

and delete the :root override at the top of articles.css, so the article pages inherit instead of re-declaring. The same two values go into the homepage's inline :root block, which duplicates the tokens (twice, in fact).

What does not change: --orange stays the vivid brand accent for the display words, the tick marks, the icon chips and the focus rings, where 3.25:1 clears the 3:1 non-text requirement. Buttons keep white labels; only the fill darkens two steps. Eyebrows keep their size, spacing and colour family; only the value behind --orange-ink changes.

If you would rather derive the ink from the brand automatically, color-mix() can get you into range — but verify, do not trust:

--orange-ink: color-mix(in oklab, #f25a1b 78%, black); 

On the current engine that lands near #c2450f, around 4.4:1 on white — still short of 4.5. Mixing in 84% black-ish is not a precision instrument; compute the ratio after the mix, in the browser, and adjust until it clears with margin. The fixed values above are what we verified; a mix is a starting point, not a result.

An audit snippet you can run now

Paste this in DevTools on any page. It walks text elements, resolves the nearest opaque background, and reports pairs below AA for their computed size and weight.

(() => { const rgb = s => (s.match(/[\d.]+/g) || []).map(Number); const lin = v => (v /= 255) <= 0.04045 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4; const lum = ([r, g, b]) => 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b); const ratio = (a, b) => { const [hi, lo] = [lum(a), lum(b)].sort((p, q) => q - p); return (hi + 0.05) / (lo + 0.05); }; const bgOf = el => { for (let n = el; n; n = n.parentElement) { const c = getComputedStyle(n).backgroundColor; if (c && c !== 'rgba(0, 0, 0, 0)' && c !== 'transparent') return rgb(c); } return [255, 255, 255]; }; const out = []; for (const el of document.querySelectorAll('body *')) { if (el.childElementCount || !el.textContent.trim()) continue; const st = getComputedStyle(el); if (st.visibility === 'hidden' || st.display === 'none') continue; const size = parseFloat(st.fontSize); const bold = parseInt(st.fontWeight, 10) >= 700; const large = size >= 24 || (bold && size >= 18.66); const r = ratio(rgb(st.color), bgOf(el)); const need = large ? 3 : 4.5; if (r < need) out.push({ node: el.tagName.toLowerCase() + (el.className ? '.' + String(el.className).split(' ')[0] : ''), text: el.textContent.trim().slice(0, 40), size, ratio: +r.toFixed(2), need }); } console.table(out); return out.length + ' elements below AA'; })(); 

Two honest limits: it treats gradients and background images as transparent, and it ignores opacity and text shadows. It found our 105 eyebrows and 92 buttons in one pass, which is the point — humans stop seeing their own site after a month.

What this does not tell you

We have not run a readability study, and we are not claiming anyone failed to use the site because of the orange. Computed ratios are not measured perception; APCA (the candidate replacement for WCAG 2 contrast) weights these pairs differently, and a 12px uppercase eyebrow is doing other work that contrast alone cannot fix. The claim is narrower: at the sizes we ship, the pair sits below the published floor, the brand colour is not to blame, and changing two tokens fixes the text without changing the look.

The change is prepared locally and not deployed — that decision belongs to the owner, and staging it silently on a live marketing site would be a worse habit than the bug. When it ships, this page will get its own before-and-after.

We are Design Den Solutions, a branding and web development studio in Mohali. If you want your own palette audited before the next campaign, start here: https://www.designdensolutions.com/branding.html?utm_source=devto&utm_medium=referral&utm_campaign=orange_contrast_tokens — and the build-side part (tokens, components, accessibility QA) lives here: https://www.designdensolutions.com/web-development.html?utm_source=devto&utm_medium=referral&utm_campaign=orange_contrast_tokens

Prepared with AI assistance and reviewed by Design Den Solutions. Contrast figures computed from the WCAG 2 formula on 30 November 2026; page counts and token locations from a local grep of the same commit. Call +91 98721 90965.