HEX in OKLCH: #D8BFD8

Auch bekannt als: CSS thistle

Ergebnis

#D8BFD8 → oklch(0.833 0.044 326.0)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #d8bfd8. Die gerundete Form fügst du üblicherweise in CSS ein.

Rechenweg Schritt für Schritt

Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.

  1. 1. sRGB → linear

    R: 216/255 = 0.84706 → 0.686685  (((x + 0.055) / 1.055)^2.4)
    G: 191/255 = 0.74902 → 0.520996  (((x + 0.055) / 1.055)^2.4)
    B: 216/255 = 0.84706 → 0.686685  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.597821
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.573900
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.640007
  3. 3. cube root

    l′ = ∛0.597821 = 0.842410
    m′ = ∛0.573900 = 0.831021
    s′ = ∛0.640007 = 0.861777
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.83329
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.03639
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.02458
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.04391
    H = atan2(b, a) = 325.963°
    L = 0.83329
  6. 6. OKLCH

    oklch(0.83329 0.04391 325.963)
    rounded: oklch(0.833 0.044 326.0)

Alle Formate

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 und Display P3

#D8BFD8 ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.158, Display P3 von 0.175; diese Farbe nutzt 28 % der verfügbaren 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); }

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #ECD2EC · oklch(0.893 0.044 326.0) · ΔL +0.06
  • #C5ACC5 · oklch(0.773 0.044 326.0) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →