radix-ui / colors

A gorgeous, accessible color system.
https://www.radix-ui.com/colors
MIT License
1.38k stars 63 forks source link

Some color scales (Yellow, Amber, Orange) do not meet the specified 4.5:1 contrast ratio guideline #42

Open kuon609 opened 9 months ago

kuon609 commented 9 months ago

Hello Radix Colors team,

I've recently discovered an inconsistency in the Radix Colors documentation regarding the contrast ratios for text.

Documentation Reference

According to Understanding the Scale, "Steps 11 and 12—which are designed for text—are guaranteed to pass 4.5:1 contrast ratio on top of a step 3 background from the same scale."

Issue Found

However, upon reviewing and calculating the contrast ratios for several scales using Chrome Dev Tools, I found that the Yellow, Amber, and Orange scales did not meet the specified 4.5:1 contrast guideline when used in the manner described.

Details

Suggestion

I believe that updating the documentation to reflect more accurate information or adjusting the color scales (Yellow, Amber, Orange) to meet the original guideline would be highly beneficial for users.

Thank you for considering this issue. I appreciate the work you do and am eager to assist in any way possible to help resolve this.

MrHBS commented 3 months ago

cc @vladmoroz