Hacker News new | ask | show | jobs
Show HN: Reasonable Colors, an open-source color system for accessible palettes (reasonable.work)
1 points by mthwl 1529 days ago
1 comments

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!