Comment

Comment by mthwl

Hi! Launched Reasonable Colors today. It’s an open-source color system for building accessible, nice-looking color palettes.

The reason this might be interesting is that it’s built programmatically within the LCH color space. All of the color shades are pinned within certain relative luminance ranges, which means all of their contrast ratios end up being rather uniform.

You can do simple “shade number math” to find high-contrast combinations.

Examples: - Pick a color, move 2 shades apart, contrast ratio guaranteed to be at least 3:1 - Pick a color, move 3 shades apart, contrast ratio guaranteed to be at least 4.5:1 - Pick a color, move 4 shades apart, contrast ratio guaranteed to be at least 7:1

Check it out, feedback welcome!

parent mthwl 4 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton