• Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 day ago

    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.