@danyoder @alextm P3 is a color gamut. Itâs the range of colors that are possible. sRGB is another color gamut â the one thatâs been the default on the web since the 90s. P3 can represent 50% more colors than sRGB. You need a display that supports P3 to see it.
LCH (and OKLCH, LAB, OKLAB) are color *models. *They are a way to describe a color. So are hexadecimal numbers, HSL, HWB, the RGB function, etc.
LCH, OKLCH, LAB, & OKLAB can represent P3 colors. The old models cannot / only do sRGB.
@danyoder @alextm So you arenât âP3 over using LCHâ. You use LCH, OKLCH, LAB, or OKLAB to define a color. And you can define a color that only exists in the P3 color gamut if youâd like. (Or maybe the color exists in sRGB, too.)
The advantage of using a new color model (LCH, OKLCH, LAB, or OKLAB) over an old color model (hexadecimal numbers, named colors, HSL, HWB, or the RGB function) is that you can define colors in *any* gamut in the new models. While the old ones are stuck in the past.
@jensimmons @danyoder Great explanation.
I think this article from Josh Comeau is a really good guide to modern web colour and also discusses the differences between P3 and LCH:
CSS gives us so many options when it comes to expressing colorâwe can use hex codes, rgb, hsl, and more. Which option should we choose? This turns out to be a surprisingly important decision! In this article, we'll take a tour of color formats in CSS, and see which option will serve us best.
SALE: save $160 off the ASUS PA32UCXR 32" 4K HDR monitor, which is a stunning 1600 nits HDR monitor with 2304 local dimming zones (4x the Pro Display XDR), automated calibration, and single cable charging/pass-through. See my full review or full list of other recommended HDR monitors. Note: "HDR" on this page refers to new display hardware which enables truly higher