Basic example
example.css
color: oklab(0.7 -0.1 0.05);
The oklab() function uses a modern perceptually uniform space for nicer blends.
color: oklab(0.7 -0.1 0.05);color: oklab(0.7 -0.1 0.05);color: oklab(0.7 -0.1 0.05);oklab() is a modern CSS feature.
Supported in current major browsers with progressive enhancement.
Bottom line: Keep a readable fallback when using newer syntax.
Continue with oklch().
CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
2 people found this page helpful