Josh Comeau personal blog

CSS Gradients that avoid the “gray dead zone”

Have you ever noticed that gradients tend to look a little gray and washed-out in the middle? This happens because of a mathematical quirk with RGB colors. Fortunately, we can work around this quirk, and create beautiful, lush, saturated gradients.
Points
1,075
HN comments
141
Submissions
1
Cited by
0 commenters

Web & FrontendDesign & UX2022

On Hacker News

SubmittedTitle on HNPointsComments
Jan 11, 2022CSS Gradients that avoid the “gray dead zone” by joshwcomeau1,075141

More from Josh Comeau

All 32 posts →

Related posts from the same era