HEX naar HSL: #D8BFD8
Ook bekend als: CSS thistle
Resultaat
#D8BFD8 → hsl(300 24% 80%)
Waarden staan op volle precisie, dus terugrekenen geeft exact #d8bfd8. De afgeronde vorm plak je gewoonlijk in CSS.
Stap-voor-stap berekening
Elk getal wordt uit de invoer berekend, er wordt niets opgezocht.
1. RGB ÷ 255
R = 0.8471 G = 0.7490 B = 0.8471
2. max, min, Δ
max = 0.8471 min = 0.7490 Δ = max − min = 0.0980
3. L
L = (max + min) / 2 = 0.7980 = 79.80%
4. S
S = Δ / (1 − |2L − 1|) = 0.2427 = 24.27%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.7490 − 0.8471) / 0.0980) mod 6) = 300.00°
6. HSL
hsl(300.00 24.27% 79.80%)
Alle formaten
- HEX
- #d8bfd8
- RGB
- rgb(216 191 216)
- RGB (legacy)
- rgb(216, 191, 216)
- HSL
- hsl(300.00 24.27% 79.80%) → hsl(300 24% 80%)
- HWB
- hwb(300 75% 15%)
- OKLCH
- oklch(0.833 0.044 326.0) · oklch(83.3% 0.044 326.0)
- OKLab
- oklab(0.833 0.036 -0.025)
- Lab (D50)
- lab(80.06 12.41 -9.14)
- LCH (D50)
- lch(80.06 15.41 323.63)
- Display P3
- color(display-p3 0.8308 0.7525 0.8405)
- Linear sRGB
- color(srgb-linear 0.6867 0.5210 0.6867)
Gamut: sRGB en Display P3
#D8BFD8 is een hexkleur en ligt dus binnen sRGB en daarmee binnen Display P3. Bij deze helderheid en tint haalt sRGB een chroma van 0.158 en Display P3 van 0.175; deze kleur gebruikt 28% van de beschikbare sRGB-chroma.
CSS-snippets
.element {
color: #d8bfd8;
color: rgb(216 191 216);
color: hsl(300 24% 80%);
color: oklch(0.833 0.044 326.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.833 0.044 326.0);
}
/* arbitrary values */
class="text-[#d8bfd8] bg-[oklch(0.833_0.044_326.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8308 0.7525 0.8405); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d8bfd8 calc(l - 0.1) c h); }Kleuren in de buurt
Dichtstbijzijnde kleuren in de Tailwind- en CSS-paletten (OKLab-afstand).
- mauve-300#D7D0D7
- silver#C0C0C0
- lightsteelblue#B0C4DE
- taupe-300#D8D2D0
- zinc-300#D4D4D8
- lightgray#D3D3D3
- v3 slate-300#CBD5E1
- slate-300#CAD5E2
Lichter en donkerder, dezelfde tint en chroma
- #ECD2EC · oklch(0.893 0.044 326.0) · ΔL +0.06
- #C5ACC5 · oklch(0.773 0.044 326.0) · ΔL −0.06