- From: Romain Menke via GitHub <sysbot+gh@w3.org>
- Date: Thu, 02 Feb 2023 09:12:35 +0000
- To: public-design-tokens-log@w3.org
Thank you for sharing this! Can confirm this is happening. Because hsl and rgb describe different color models and different channels the whole (integer) numbers land on slightly different points in the srgb color space. If the in memory color representation is not rounded you will be able to cycle through different representations without altering the value. When storing the values as string however they will be rounded in both hex an hsl formats. `#DFFEF0` in hsl without rounding : `152.90322580645162 93.93939393939395 93.52941176470588` The only solution to this is to store colors in a 16bit per channel format, a.k.a. floats. -- GitHub Notification of comment by romainmenke Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/79#issuecomment-1413386063 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 2 February 2023 09:12:37 UTC