High Definition CSS Color Guide
developer.chrome.com
developer.chrome.com
He's really a reference in interactive visualization. There's a link to his article on color spaces labeled "Try it for yourself", but I would prefer a direct and clearer textual attribution to him.
Are there any stats on how many people have devices that support these color spaces? Guessing you're not going to get a lot of brands picking p3 colors until it's widely supported by devices in general usage?
Also, within CSS & browsers at least, the colours gracefully degrade based on the hardware, so using p3 in a supported browser is not going to look terrible on hardware without p3 support.
My general feeling working with designers and web developers is most aren't aware of p3. Figma only got p3 support around 9 months ago I think and Chrome around 1 year ago.
Apple made a song & dance about it 7 years ago but releases of supporting displays since have been relatively low-key & I'm not aware of any online reference table tracking them - so my guess that support is broad is just that, a guess. I know Samsung & OnePlus phones have it & I assume Pixels (not checked), but laptop adoption could be much lower.
I feel like it makes it difficult for a brand to decide to rebrand themselves using P3 colors if it means their brand colors will be wrong on many people’s displays.
Only if the colors they choose fall outside the sRGB gamut. And if they do, the brand can specify colors for both gamuts.
.brand-color {
/* Fallback for browsers that don't support color-gamut media query */
background-color: rgb(0, 122, 255); /* sRGB version */
/* For browsers that support wide gamut but without color-gamut media query */
background-color: color(display-p3 0 0.478 1); /* Display P3 version */
@media (color-gamut: p3) {
/* For browsers that support Display P3 with color-gamut media query */
background-color: color(display-p3 0 0.478 1); /* Display P3 version */
}
}
FWIW, this is a fairly common thing to have to handle. For example, many brands use colors that can't be perfectly reproduced on paper, t-shirts, etc.As for p3 adoption outside of Apple-land, you're right there's no good stats but I'd wager they're higher than you're making out. 62% of the (global) market is mobile (average replacement cycle is ~2.5 years so most will be a bit newer than 2017). Samsung have adopted p3 & are 24% of global share alone.
Desktop is going to be your smallest share but even there ASUS are selling DCI-P3 laptops for $500. And the growing gamer demographic are going to be investing in their screens after they're done paying for their RTX...
Realistically, at this time, this is for developers who works on a MacBook and creates web pages for users that use MacBook or iPad Air/Pro. Most Windows laptops under $600 don't even have sRGB, and even some over $1k don't (like my ThinkPad). sRGB is often as good as it gets with regard to color gamut on (all) Windows laptops, P3 color coverage is very rare. Even more so for Chromebooks. When it comes to monitors, most target sRGB.
Of course what they are doing is important, but it will be a long time before most people can benefit from it.
Apple, Samsung and Google all ship devices with display P3 capable screens.
Sure, lots of random corporate office workers might have some crappy bottom of the barrel displays, but then you don't need P3 to see five colors in Excel.
There's a lot of windows laptops that support P3 or in the case of some OLED displays exceed Display P3's gamut.
The same for monitors. There's 4K OLEDs hitting the market hitting about 80% rec 2020 and completely covering Display P3.
Your display market knowledge is a few years outdated.
If alpha support came out with hex from the beginning then it may be a different story
So the idiots who established these new, contrived CSS syntaxes literally making people go on all fours, because... well, because they have the power to release such a mountain of shit.
Microsoft's Internet Explorer bullied every web developer for decades. Now Safari earned the honour of becoming the bully amongst web browsers, with their we just couldn't care less attitude. They do things here and there just a tad bit different, because, well, they are Apple, and everyone can fuck off. Like their fullscreen media query implementation, or the blur rendering outside viewport shenanigans just to name a few of their idiotic choices.
And Chrome... we need to wrestle away the browser from Google. The sooner, the better.
Definitely hyperbole. Syntax is not nearly _the_ problem of CSS
(rather unfortunate such a bad format like RGB is so dominant)
As noted there, okHSL/HSV keeps the perceptual uniformity by removing some peaks beyond the geometric limit of HSL/HSV, and it is unclear whether it is what users do expect or not.
Sure, you have to worry about chroma limits, but they reflect the reality of color differences (blues are never going to be as vivid as greens)
First, it's not 62%, but 62.8%, so that's already a fail at producing a basic color. Second, it doesn't sound right - you have no general knowledge/experience clue that this much light between black and white is red, so have no chance for a good guess
> I appreciate is a thing you have to learn, but it’s not beyond human comprehension.
Can you not appreciate that 0-100 is something that you almost don't have to learn?
> if you lower that chroma you get colors that are as red, but less intense - which is what you would expect
Yes, that's the good part!
> And then you have a hue, which is an arbitrary angle
That's another common flaw of all these color notations (they should allow "r" for red and then +-degrees for deviations), but it this case it's worse because it's again not a clean 29 number for a "clean" color
> Add 180 to it to get a complement though, or add or subtract 120 to get to green or blue.
If you remember the whole wheel. Not beyond "human comprehension", just UI fail for the non-expert general human
But they should all be easy, and your suggestion fails at multiple points as I've explained above, not only for red, so the I'm puzzled why you insist it should be that hard and want a proof of the opposite
Long rant: I've got a Windows 10 machine with NVidia graphics, a company issued Windows 11 laptop with an integrated Intel GPU and a fairly recent Macbook. The display in question is MSI MAG274UPF, which can be considered wide gamut.
Mac (presumably) pulls RGB primaries from the EDID and performs the necessary gamut mapping without losing the ability to display images in P3 space. Colors are perfect, wide gamut tests pass, everyone's happy.
Windows 10 has no idea what to do with WCG and displays everything in ultra vivid, extra saturated colors even after trying to mess with vendor-provided ICC profile. WCG tests fail.
Windows 11 should have Auto Color Management, which in theory should bring us roughly to feature parity with macOS, but for some reason it allows me to turn it on only on the laptop's internal display, which has ~60% sRGB coverage. Apparently Windows does not want to enable gamut mapping in SDR mode on HDR certified displays, even if they conform only to DisplayHDR 400 specification, which is an abomination in itself. Results are the same as with Windows 10.
My disappointment is immeasurable. We could have proper WCG support in Windows world.
edit: omg non-banded gradients, finally.
Good to know for instance that a bunch of stuff could be deprecated.
Can you elaborate on the deprecation part though?