HEX in OKLCH: #510424

Auch bekannt als: Tailwind pink-950

Ergebnis

#510424 → oklch(0.284 0.109 3.6)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #510424. 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: 81/255 = 0.31765 → 0.082283  (((x + 0.055) / 1.055)^2.4)
    G: 4/255 = 0.01569 → 0.001214  (÷ 12.92)
    B: 36/255 = 0.14118 → 0.017642  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.035477
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.020157
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.018722
  3. 3. cube root

    l′ = ∛0.035477 = 0.328587
    m′ = ∛0.020157 = 0.272151
    s′ = ∛0.018722 = 0.265532
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.28406
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.10865
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00681
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.10886
    H = atan2(b, a) = 3.589°
    L = 0.28406
  6. 6. OKLCH

    oklch(0.28406 0.10886 3.589)
    rounded: oklch(0.284 0.109 3.6)

Alle Formate

HEX
#510424
RGB
rgb(81 4 36)
RGB (legacy)
rgb(81, 4, 36)
HSL
hsl(335.06 90.59% 16.67%) → hsl(335 91% 17%)
HWB
hwb(335 2% 68%)
OKLCH
oklch(0.284 0.109 3.6) · oklch(28.4% 0.109 3.6)
OKLab
oklab(0.284 0.109 0.007)
Lab (D50)
lab(15.62 35.16 3.29)
LCH (D50)
lch(15.62 35.32 5.34)
Display P3
color(display-p3 0.2890 0.0497 0.1408)
Linear sRGB
color(srgb-linear 0.0823 0.0012 0.0176)

Gamut: sRGB und Display P3

#510424 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.114, Display P3 von 0.129; diese Farbe nutzt 95 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #510424;
  color: rgb(81 4 36);
  color: hsl(335 91% 17%);
  color: oklch(0.284 0.109 3.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.284 0.109 3.6);
}
/* arbitrary values */
class="text-[#510424] bg-[oklch(0.284_0.109_3.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2890 0.0497 0.1408); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #510424 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

  • #631933 · oklch(0.344 0.109 3.6) · ΔL +0.06
  • #3F0016 · oklch(0.224 0.109 3.6) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →