1. 13
  1.  

    1. 6

      You might be interested in the Oklab and Oklch color spaces. There have been several articles posted here (A perceptual color space for image processing, Color gradients and my gradual descent into madness, Improving on Solarized using the OKLab perceptual colorspace, OKLCH in CSS: why we moved from RGB and HSL, and An interactive review of Oklab to name a few) about them. Since human color perception is non-linear, there will likely always be perceptual inconsistencies with any color space, but these seem to do a reasonable job of correcting for them.

      Also, although I personally appreciate your contributions of your articles here, there is a general community guideline of no more than one quarter of your posts being self-promotion. I would encourage you to post some articles you are reading that you find interesting as well your own.

      1. 6

        The points within the post go beyond the perceptual uniformity that OkLab was designed for. Surrounding colors affect our perception as well.

        The post mentions the Helmholtz–Kohlrausch effect (wikipedia.org), which is described as:

        Perceived brightness is affected most by what is surrounding the object. In other words, the object can look lighter or darker depending on what is around it. In addition, the brightness can also appear different depending on the color of the object.

        Colorspaces like OkLab can address the second, but not the first.

        This is why, for instance, the person developing “draft WCAG 3” contrast requirements / “ACPA” uses calculations that treat light-on-dark and dark-on-light differently for prose readability. This differs from purely using the differences in the background and foreground perceived lightnesses.

        1. 3

          Do you take the author to mean that they’re looking for a contextual color space, in other words, one that takes some surrounding color as a parameter and produces dynamic outputs based on that value?

          1. 5

            It seems that way to me, yes. However, to my (severely amateur) understanding, this moves beyond what a color space is for, and into color correction or enhancement of an image.

        2. 1

          Thanks for note about the community guidelines. I had no clue about that rule. I tend to be more of a lurker than a poster, so I’ll keep this in mind.

          Oklab and Oklch unfortunately suffer from the same issues, at least based on when I tried them. They are a general improvement on CIELAB on some axis, but they didn’t seem to solve the problem with reds in my testing. And as far as I can find, neither were designed with this effect in mind (they were designed for other properties as a goal).

          Thanks for the links! I’ll check them out!

          1. 1

            No worries. If color context (the effect surrounding or neighboring colors have on one another e.g. in the Helmhotz-Kohlrausch effect) interests you in particular, you might check out Josef Albers’ Interaction of color. It’s more of an artistic approach to color theory than a scientific one, but it’s fun to play around with color fields and shapes and see their effects on each other. Albers’ approach is still in use in art schools today. It’s particularly amazing to see his book in print with color plates. The large format hardcover set is a bit too expensive for individuals to purchase, but some libraries have it.