Mix colors directly in CSS with color-mix() ๐ŸŽจ

Blend two colors in any color space, no JavaScript or preprocessors needed.

color-mix(in oklch, red 30%, blue)
Supports sRGB, HSL, HWB, LCH, OKLCH, and more.

Learn more ๐Ÿ‘‡
developer.mozilla.org/en-US/do

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/mdn/statuses/116210665640935049 on your instance and quote it. (Note that quoting is not supported in Mastodon.)