←back to thread

681 points NetOpWibby | 4 comments | | HN request time: 0s | source

Hey everyone,

About a year ago I embarked on creating a color scheme for a project and I loved it so much I began using it for everything. I decided to make an official repo for it to share with the world.

Anyhoo, hope y'all enjoy it.

1. jakubmazanec ◴[] No.43076725[source]
The palette doesn't seem perceptually uniform, i.e. the contrast ratios of each tint vs. white/black aren't the same across all colors. Did your try analysing the palette in https://huetone.ardov.me/ ?
replies(2): >>43076812 #>>43076880 #
2. NetOpWibby ◴[] No.43076812[source]
Nope, I just did what felt good. Does the huetone tool support OKLCH? I didn't see a toggle for it.
replies(1): >>43078879 #
3. darekkay ◴[] No.43076880[source]
I've analyzed the palette with my own tool, a11y-contrast[1], and indeed the luminance is not uniform. I wrote [2] about why this might be a desired property of a color palette.

[1] https://github.com/darekkay/a11y-contrast

[2] https://darekkay.com/blog/accessible-color-palette/

4. jakubmazanec ◴[] No.43078879[source]
You have to convert your OKLCH colors to RGB hex codes before you can import them to Huetone, and that's little bit annoying, but worthwhile. I wouldn't use any palette that isn't perceptually uniform anymore. Being able to switch e.g. red-400 to blue-400 and to retain same contrasts is very valuable.