Comment

Comment by edwintorok

I like that this uses OKLab instead of hsv/HSL that some colormaps use (which are not based on color theory).

It would be nice if this used the upcoming WCAG3 contrast algorithm https://www.myndex.com/APCA/ and ensured it's minimum contrast meets the recommended values there for body text, etc.

There is a tool that can assist in designing color maps taking APCA into account https://huetone.ardov.me/

For perceptually uniform colormaps see also https://colorcet.com/

parent edwintorok 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton