this post was submitted on 13 Nov 2025
3 points (100.0% liked)
Frontend Web Development
371 readers
2 users here now
Community to discuss stuff all things related to frontend web development. (sharing resources, discussion etc.)
founded 5 years ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I have basically a web music player, where I pick the highlight color hue semi-randomly for each song. I thought, that's a perfect use-case for OKLCH, but I actually wasn't a fan.
Because it equalizes the lightness, that means you never get the most vibrant colors for all hues, at a given lightness value. So, if you pick a low lightness value, then violet is vibrant, but yellow looks muddy. With a high lightness value, yellow is vibrant and violet is washed out.
I did also have the accessibility problem of overlayed text being unreadable, but worked around it with a blurred drop shadow, to give the white lines a black outline on top of the vibrant colors.