https://en.wikipedia.org/wiki/Oklab_color_space

Just found out about the #Oklab color space and #Oklch and how they are already a part of #CSS. Very nice work.

Not sure if I'm up for the task technically or mathematically just yet, but at least conceptually, I'm thinking of creating a new 8-bit 256-color palette that is optimized for displaying the most amount of colors that the average human eye perceives. Oklab might well provide a good starting point for that.

#Color #ColorWheel #Palette

@vrtxd I think the biggest issue you have is with RGB color space. At some point I played around with removing duplicate colors (visually imperceptible difference) from the 12-bit RGB (4096 colors) and doing that easily halved the number of colors, though it still left a lot of colors that were very hard to differentiate.

Then I made this pen that picks colors that are the most different. There is the magical value of 8.32 in delta which gives the correct amount.

https://codepen.io/Merri/pen/mdgqEey

Playing with 12-bit / 4096 colors reduction to 256 color palette (Commander X16)

...

@vrtxd While 12-bit limitation isn't interesting to you, I think the point of working from RGB color space and limiting useless stuff out of there helps out in defining the final 256 color palette.

I think any 256 color palette eventually ends up into being full of artistic opinions because without them it just becomes a mess to use (= random bunch of colors).

@merri Yes, you're right. Also 12-bit is interesting, and it might indeed make more sense to explore those avenues further. I guess I simply find it interesting to try to figure out how color works, how to approach color palettes and how to map those colors to a 2D, 3D or even 4D space. In the end, it might just be me overcompensating for my chaotic color vision.

This inspired me to look into Oklab: https://youtu.be/EIlp8wyY97c

The Real Missing Colors of Minecraft (*1.20)

YouTube

@vrtxd For comparing RGB vs OKLCH you might find this interesting: https://oklch.com

From there it becomes quickly obvious where RGB is "weak" compared to color vision. Like there is a lack of strongly saturated colors in the lighter and darker end for many of the hues. This makes it hard to create fully uniform gradients for some hue and chroma combinations.

OKLCH Color Picker & Converter

OKLCH is a new way to encode colors (like hex, RGBA, or HSL)

@vrtxd Oh and my interest in colors is also on the limited side, I just doodle around the topic every now and then.