HEX in OKLCH: #3B0764

Auch bekannt als: Tailwind v3 purple-950

Ergebnis

#3B0764 → oklch(0.291 0.143 302.7)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #3b0764. 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: 59/255 = 0.23137 → 0.043735  (((x + 0.055) / 1.055)^2.4)
    G: 7/255 = 0.02745 → 0.002125  (÷ 12.92)
    B: 100/255 = 0.39216 → 0.127438  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.025724
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.024400
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.084743
  3. 3. cube root

    l′ = ∛0.025724 = 0.295198
    m′ = ∛0.024400 = 0.290045
    s′ = ∛0.084743 = 0.439240
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.14324
    H = atan2(b, a) = 302.717°
    L = 0.29052
  6. 6. OKLCH

    oklch(0.29052 0.14324 302.717)
    rounded: oklch(0.291 0.143 302.7)

Alle Formate

HEX
#3b0764
RGB
rgb(59 7 100)
RGB (legacy)
rgb(59, 7, 100)
HSL
hsl(273.55 86.92% 20.98%) → hsl(274 87% 21%)
HWB
hwb(274 3% 61%)
OKLCH
oklch(0.291 0.143 302.7) · oklch(29.1% 0.143 302.7)
OKLab
oklab(0.291 0.077 -0.121)
Lab (D50)
lab(14.94 36.96 -42.85)
LCH (D50)
lch(14.94 56.59 310.78)
Display P3
color(display-p3 0.2101 0.0451 0.3764)
Linear sRGB
color(srgb-linear 0.0437 0.0021 0.1274)

Gamut: sRGB und Display P3

#3B0764 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.153, Display P3 von 0.160; diese Farbe nutzt 94 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #3b0764;
  color: rgb(59 7 100);
  color: hsl(274 87% 21%);
  color: oklch(0.291 0.143 302.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.291 0.143 302.7);
}
/* arbitrary values */
class="text-[#3b0764] bg-[oklch(0.291_0.143_302.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.2101 0.0451 0.3764); }
}

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

  • #4B1D76 · oklch(0.351 0.143 302.7) · ΔL +0.06
  • #2C0052 · oklch(0.231 0.143 302.7) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →