A deep dive into CSS color-mix()

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI18 min

About this video

A walkthrough of the CSS color-mix() function, covering how to mix colors by percentage, what happens when percentages total less than 100%, how different color models such as lab, oklab, lch and oklch behave, and a brief example of building a color scheme with it. It suits front-end developers and designers who already write CSS.

What you’ll learn

  • Mix two colors in CSS using color-mix() with specific percentages
  • Predict how color-mix() handles percentages that do not total 100%
  • Compare color models such as oklab and oklch when mixing colors