The “Gray Dead Zone” of Gradients

Erik D. Kennedy notes an interesting phenomenon of color gradients. If you have a gradient between two colors where the line between them in the color space goes through the zero-saturation middle, you get this “gray dead zone” in …


The post The “Gray Dead Zone” of Gradients appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier

Erik D. Kennedy notes an interesting phenomenon of color gradients. If you have a gradient between two colors where the line between them in the color space goes through the zero-saturation middle, you get this “gray dead zone” in the middle.

It’s a real thing. See the gray middle here:

You can also see how colors might not do that, like red and blue here shooting right through purple instead, which you can visualize on that color circle above.

Erik says one solution can be taking a little detour instead of going straight through the gray zone:

His updated gradient tool deals with this by using different “interpolation modes” and easing the gradient with a choice of precision stops. Don’t miss the radial and conic options as well, with the ability to place the centers “offscreen” which can yield pretty cool looks you can’t do any other way.

Oh and speaking of conic gradients, Adam Argyle has a little gallery of possibilities that is pretty unique.


The post The “Gray Dead Zone” of Gradients appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.


This content originally appeared on CSS-Tricks and was authored by Chris Coyier


Print Share Comment Cite Upload Translate Updates
APA

Chris Coyier | Sciencx (2021-03-01T19:16:50+00:00) The “Gray Dead Zone” of Gradients. Retrieved from https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/

MLA
" » The “Gray Dead Zone” of Gradients." Chris Coyier | Sciencx - Monday March 1, 2021, https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/
HARVARD
Chris Coyier | Sciencx Monday March 1, 2021 » The “Gray Dead Zone” of Gradients., viewed ,<https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/>
VANCOUVER
Chris Coyier | Sciencx - » The “Gray Dead Zone” of Gradients. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/
CHICAGO
" » The “Gray Dead Zone” of Gradients." Chris Coyier | Sciencx - Accessed . https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/
IEEE
" » The “Gray Dead Zone” of Gradients." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/. [Accessed: ]
rf:citation
» The “Gray Dead Zone” of Gradients | Chris Coyier | Sciencx | https://www.scien.cx/2021/03/01/the-gray-dead-zone-of-gradients/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.