HEX in OKLCH: #62748E

Auch bekannt als: Tailwind slate-500

Ergebnis

#62748E → oklch(0.554 0.046 257.5)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #62748e. 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: 98/255 = 0.38431 → 0.122139  (((x + 0.055) / 1.055)^2.4)
    G: 116/255 = 0.45490 → 0.174647  (((x + 0.055) / 1.055)^2.4)
    B: 142/255 = 0.55686 → 0.270498  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.157933
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.173815
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.230394
  3. 3. cube root

    l′ = ∛0.157933 = 0.540536
    m′ = ∛0.173815 = 0.558079
    s′ = ∛0.230394 = 0.613043
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.04599
    H = atan2(b, a) = 257.526°
    L = 0.55416
  6. 6. OKLCH

    oklch(0.55416 0.04599 257.526)
    rounded: oklch(0.554 0.046 257.5)

Alle Formate

HEX
#62748e
RGB
rgb(98 116 142)
RGB (legacy)
rgb(98, 116, 142)
HSL
hsl(215.45 18.33% 47.06%) → hsl(215 18% 47%)
HWB
hwb(215 38% 44%)
OKLCH
oklch(0.554 0.046 257.5) · oklch(55.4% 0.046 257.5)
OKLab
oklab(0.554 -0.010 -0.045)
Lab (D50)
lab(48.11 -2.01 -16.58)
LCH (D50)
lch(48.11 16.71 263.10)
Display P3
color(display-p3 0.3980 0.4528 0.5478)
Linear sRGB
color(srgb-linear 0.1221 0.1746 0.2705)

Gamut: sRGB und Display P3

#62748E 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.201, Display P3 von 0.255; diese Farbe nutzt 23 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #62748e;
  color: rgb(98 116 142);
  color: hsl(215 18% 47%);
  color: oklch(0.554 0.046 257.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.554 0.046 257.5);
}
/* arbitrary values */
class="text-[#62748e] bg-[oklch(0.554_0.046_257.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3980 0.4528 0.5478); }
}

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

  • #7386A0 · oklch(0.614 0.046 257.5) · ΔL +0.06
  • #51637C · oklch(0.494 0.046 257.5) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →