ThePacielloGroup / CCAe

The Colour Contrast Analyser (CCA) helps you determine the legibility of text and the contrast of visual elements, such as graphical controls and visual indicators.
http://www.paciellogroup.com/resources/contrastanalyser/
GNU General Public License v3.0
475 stars 106 forks source link

The sampling of colours is different #278

Closed thvi closed 11 months ago

thvi commented 1 year ago

Hello, Colour Contrast Analyser (CCA)
v. 3.1.2 doesn't work correctly Best.

ferllings commented 1 year ago

I removed your link for security purpose, as the target was not clearly identifiable. Please attach an image instead.

diprosew commented 1 year ago

I agree with thvi, the eyedropper sampler results are incorrect. Proof in point: Type in 100% red HEX value into the input field, i.e. #FF0000, then sample the displayed color and the resultant sample is not the same. The rgb values say it all; The result is rgb(247, 0, 12). 100% green/rgb(0, 255, 0) when sampled becomes rgb(72, 254, 0)

ferllings commented 1 year ago

The result may vary according to your screen and the app color profiles. See #76

thvi commented 1 year ago

ezgif-5-94902427ac

thvi commented 1 year ago

The accessibility ratios are different.

Screenshot 2023-02-16 at 8 57 18 AM
ferllings commented 1 year ago

That's what I'm saying, if figma and CCA are not in the same color space, you may have different results

thvi commented 1 year ago

That's what I'm saying, if figma and CCA are not in the same color space, you may have different results

So, how can I resolve it?

ferllings commented 1 year ago

As described in #76, that's not an easy problem. (If you application allows it) You need everything in the same color space