Using Different Color Spaces for Non-Boring Gradients

A little gradient generator tool from Tom Quinonero. You’d think fading one color to another would be an obvious, simple, solved problem — it’s actually anything but!

Tom’s generator does two things that help make a gradient better:

  1. You


Using Different Color Spaces for Non-Boring Gradients originally published on CSS-Tricks. You should get the newsletter and become a supporter.


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

A little gradient generator tool from Tom Quinonero. You’d think fading one color to another would be an obvious, simple, solved problem — it’s actually anything but!

Tom’s generator does two things that help make a gradient better:

  1. You can pick an “interpolation space.” Gradients that use the sRGB color space (pretty much all the color stuff we have in CSS today) have a bad habit of going through a gray dead zone, and if you interpolate the gradient in another color space, it can turn out nicer (and yet convert it back to RGB to use today).
  2. Easing the colors, though the use of multiple color-stops, which can result in a less abrupt and more pleasing look.
Showing a color wheel with a line indicating the two colors in a gradient that goes from yellow to light blue. The resulting gradient is at top showing some gray tones as a result of the color space.
See the gray in the middle there?

Different gradient apps with different color spaces

Josh has another similar app, as does Erik Kennedy. So stinkin’ interesting how different gradients are in different color spaces. Think of the color spaces as a physical map where individual colors are points on the map. Gradients are dumb. They just walk straight from one point on the map to the next. The colors underneath their feet as they walk make a massive difference in how the gradient turns out.

To Shared LinkPermalink on CSS-Tricks


Using Different Color Spaces for Non-Boring Gradients originally published on CSS-Tricks. You should get the newsletter and become a 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 (2022-02-07T21:46:18+00:00) Using Different Color Spaces for Non-Boring Gradients. Retrieved from https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-gradients/

MLA
" » Using Different Color Spaces for Non-Boring Gradients." Chris Coyier | Sciencx - Monday February 7, 2022, https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-gradients/
HARVARD
Chris Coyier | Sciencx Monday February 7, 2022 » Using Different Color Spaces for Non-Boring Gradients., viewed ,<https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-gradients/>
VANCOUVER
Chris Coyier | Sciencx - » Using Different Color Spaces for Non-Boring Gradients. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-gradients/
CHICAGO
" » Using Different Color Spaces for Non-Boring Gradients." Chris Coyier | Sciencx - Accessed . https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-gradients/
IEEE
" » Using Different Color Spaces for Non-Boring Gradients." Chris Coyier | Sciencx [Online]. Available: https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-gradients/. [Accessed: ]
rf:citation
» Using Different Color Spaces for Non-Boring Gradients | Chris Coyier | Sciencx | https://www.scien.cx/2022/02/07/using-different-color-spaces-for-non-boring-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.