HEX in OKLCH: #4F46E5

Auch bekannt als: Tailwind v3 indigo-600

Ergebnis

#4F46E5 → oklch(0.511 0.230 277.0)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #4f46e5. 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: 79/255 = 0.30980 → 0.078187  (((x + 0.055) / 1.055)^2.4)
    G: 70/255 = 0.27451 → 0.061246  (((x + 0.055) / 1.055)^2.4)
    B: 229/255 = 0.89804 → 0.783538  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.105389
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.142408
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.517770
  3. 3. cube root

    l′ = ∛0.105389 = 0.472351
    m′ = ∛0.142408 = 0.522209
    s′ = ∛0.517770 = 0.802994
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.23005
    H = atan2(b, a) = 276.966°
    L = 0.51057
  6. 6. OKLCH

    oklch(0.51057 0.23005 276.966)
    rounded: oklch(0.511 0.230 277.0)

Alle Formate

HEX
#4f46e5
RGB
rgb(79 70 229)
RGB (legacy)
rgb(79, 70, 229)
HSL
hsl(243.40 75.36% 58.63%) → hsl(243 75% 59%)
HWB
hwb(243 27% 10%)
OKLCH
oklch(0.511 0.230 277.0) · oklch(51.1% 0.230 277.0)
OKLab
oklab(0.511 0.028 -0.228)
Lab (D50)
lab(39.38 41.55 -80.97)
LCH (D50)
lch(39.38 91.00 297.16)
Display P3
color(display-p3 0.3039 0.2758 0.8646)
Linear sRGB
color(srgb-linear 0.0782 0.0612 0.7835)

Gamut: sRGB und Display P3

#4F46E5 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.278, Display P3 von 0.297; diese Farbe nutzt 83 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #4f46e5;
  color: rgb(79 70 229);
  color: hsl(243 75% 59%);
  color: oklch(0.511 0.230 277.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.511 0.230 277.0);
}
/* arbitrary values */
class="text-[#4f46e5] bg-[oklch(0.511_0.230_277.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.3039 0.2758 0.8646); }
}

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

  • #5E5BFA · oklch(0.571 0.230 277.0) · ΔL +0.06
  • #422FD0 · oklch(0.451 0.230 277.0) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →