primer / prism

A tool for creating and maintaining cohesive, consistent, and accessible color palettes
https://primer.style/prism/
MIT License
670 stars 40 forks source link

Colors don't match expectation #14

Closed colingreene1 closed 2 years ago

colingreene1 commented 2 years ago

Describe the bug Some colors dont seem to be represented correctly.

To Reproduce Steps to reproduce the behavior:

  1. Go to prism
  2. Click on the blue palette
  3. Enter hsl(189.5,59.4%,74.9%) for a color value

Expected behavior The outputted color in the palette and it's corresponding hex/rgba color don't seem to match expectations. For example, if you use convertacolor and paste in hsl(189.5,59.4%,74.9%) I get values I'd expect. However, the rgba/hex values from prism are a good bit off.

Screenshots

image image

Environment

Additional context I could also be misunderstanding how this works, but I seemed to get true-ish values for when I went through it with a gray palette.

colingreene1 commented 2 years ago

Actually, after messing around with this more, I think it's fair to say it was user error. If I use the correct convert from hex to HSLuv, things work as expected.

Feel free to close this ticket