Re: [csswg-drafts] [css-color] Computing lch/lab to srgb with lightness = 0% or 100% (#8794)

> Is this to say that this powerlessness is really only an issue for conversions into the color spaces with lightness as a component?

It is primarily an issue for conversions into a space with hue as a component.

> `color(srgb 1 1 1)` 

[I get](https://colorjs.io/apps/convert/?color=color(srgb%201%201%201)&precision=8) `[lab(100 -0.000008 0.0000068)](https://colorjs.io/apps/convert/?color=lab(100%20-0.000008%200.0000068)&precision=8)` or `lch(100 0.0000103 0)` where that final 0 hue is actually computed as `NaN`.

> `color(xyz-d65 1 1 1)`

I'm getting `lab(100.11544 9.0644801 5.8017679)` and `lch(100.11544 10.762217 32.621488)` which is similar to yours. Chromatic adaptation is the reason for that.

> color(xyz-d50 1 1 1)

I get `lab(100 6.0964191 -13.2359)` and `lch(100 14.572419 294.73067)` so given the D50 I am surprised the chroma is that high.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8794#issuecomment-1654254564 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 July 2023 19:01:08 UTC