Why Website Gradients Turn Ugly Muddy Gray in the Middle — and the 2-Word CSS Fix

Default CSS gradients lose up to 95.6% of their color purity right in the middle, turning bright blends into muddy gray. Adding "in oklch" fixes it instantly.

2026 Key Statistics & Quick-Cite Summary

Short version: Classic CSS blends colors in a straight line through the dull gray center of the color cube, wiping out 64% to 95.6% of color vibrancy at the halfway mark. Adding two tiny words — "in oklch" — tells modern browsers (95%+ support) to curve smoothly around the colorful outside instead.

  • 95.6% lost — Color vibrancy wiped out in the middle of a Teal-to-Coral blend (ColorQueue 5-Gradient Midpoint Test)
  • 20× richer — How much more colorful Blue-to-Amber stays using "in oklch" (Midpoint Purity Comparison)
  • 95.0% — Web browsers that already support the 2-word CSS fix (CanIUse Browser Tracking (2025))

Ever blend two bright colors on a website — like blue and orange, or teal and pink — and wonder why the middle turns into ugly swamp gray? We measured 5 common blends and found default CSS destroys up to 95.6% of the color right in the center.

Why Two Pretty Colors Make One Ugly Middle

Imagine standing on one side of a circular track and wanting to reach the opposite side. Classic CSS takes a lazy shortcut: it walks straight across the muddy gray dirt in the center instead of following the colorful track around the outside.

When you blend Teal (#0D9488) to Coral (#FB7185), the exact center turns into flat battleship gray (#848387), losing 95.6% of its color richness.

How Colorful Is the Exact Middle of Each Gradient? (Color Richness Score)

Scores near zero look like dull concrete gray. Higher scores stay bright and vibrant all the way across.

How Colorful Is the Exact Middle of Each Gradient? (Color Richness Score)
ItemDefault CSS BlendModern "in oklch" BlendContext
Blue to Amber10 pts202 ptsClassic turns dull gray; modern stays vivid
Cyan to Crimson23 pts167 pts—
Emerald to Magenta18 pts140 pts—
Teal to Coral6 pts136 pts95.6% color loss in classic CSS!
Indigo to Lime39 pts109 pts—

Data note: Exact halfway color richness measured in OKLCH chroma (scaled ×1,000) for standard RGB mixing vs. modern OKLCH mixing.

All Five Popular Blends Crashed Into the Gray Zone

Every single opposite-color blend we tested suffered the exact same gray dip under default CSS:

  • Teal to Coral dropped to a richness score of just 6 (vs. 136 with the modern fix).
  • Blue to Amber crashed to 10 (vs. 202 — over 20× brighter!).
  • Emerald to Magenta sank to 18 (vs. 140).

You can play with smooth modern blends right now inside our Gradient Generator or grab ready-made ones in our Gradient Library.

The 2-Word CSS Fix That Works in 95% of Browsers

You don’t need extra libraries or messy extra color stops. Just add in oklch right after the angle in your CSS gradient:

One Quick Warning Before You Switch

If you put white headline text directly on top of a gradient, check that the brighter middle doesn’t make your letters harder to read. Test the middle color in our Contrast Checker to be 100% sure.

Cite This Study

ColorQueue (2026). "Why Website Gradients Turn Ugly Muddy Gray in the Middle — and the 2-Word CSS Fix." https://colorqueue.com/guides/oklch-vs-srgb-gradient-midpoint-chroma-collapse/

Research Sources & Primary Citations

Open Gradient Generator

Featured Color Swatches & HEX Codes

  • #0D9488sRGB HEX Specification
  • #848387sRGB HEX Specification
  • #A79202sRGB HEX Specification
  • #FB7185sRGB HEX Specification
  • #0066FFsRGB HEX Specification

Frequently Asked Questions

Why does blue + orange turn gray on screens when paint turns brown?

Computer screens average Red, Green, and Blue light numbers halfway between two opposite colors, which lands right near equal R=G=B — the exact recipe for neutral gray.

Is "in oklch" safe to use on real websites today?

Yes! Over 95% of browsers support it, and you can list a classic gradient line right above it as a fallback for very old devices.

Does this work for radial and conic gradients too?

Yes — you can write radial-gradient(circle in oklch, ...) and conic-gradient(in oklch, ...) to keep all smooth blends vibrant.