1 Thing A Week 1 Thing
A Week

First look at colour spaces in CSS

Week 319.0 — 4th December '23

One thing I forgot to put on my CSS learning list for 2024 was colour spaces in CSS. I've been meaning to dive into this for a while and had a quick play over on CodePen to built a couple of examples that let you manipulate the colour of a white box to be able to tune it using the oklch and oklab colour spaces.

What I hope the achieve by exploring some more is to see HDR colours on my screen, ultra white whites like you get when you take photos of clouds on your iPhone.

I'll be playing with this some more next year to see if I can get it working beyond just replicating what I can get from using RGB or HSL in CSS for colour values.

More from 1 Thing A Week
« My 2023 Gift Guide The 2022 Gift Guide



Quick links and commentary on interesting articles, videos and more throughout the week.

  1. 319.1 – Monday
    1. iPhone 15 Camera, Album Cover Apple on youtube.com
  2. 319.4 – Thursday
    1. Fallout Teaser Trailer Prime Video on youtube.com

Jump to notable items for Week #318 , view the notable archive or my favourites.

About 1 Thing A Week

A website curated by @cchana bringing you 1 Thing A Week, delivered every Monday morning.

You can find a list of all articles in the archive, or read the most popular.

Find out more about 1 Thing A Week or read the privacy policy.


Visit the market and support 1 Thing A Week.

You can find 1 Thing A Week on Twitter, Facebook, Instagram & Reddit