HEX in OKLCH: #2E1065

Auch bekannt als: Tailwind v3 violet-950

Ergebnis

#2E1065 → oklch(0.283 0.135 291.1)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #2e1065. 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: 46/255 = 0.18039 → 0.027321  (((x + 0.055) / 1.055)^2.4)
    G: 16/255 = 0.06275 → 0.005182  (((x + 0.055) / 1.055)^2.4)
    B: 101/255 = 0.39608 → 0.130136  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.020736
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.023293
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.085855
  3. 3. cube root

    l′ = ∛0.020736 = 0.274733
    m′ = ∛0.023293 = 0.285588
    s′ = ∛0.085855 = 0.441153
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.13513
    H = atan2(b, a) = 291.089°
    L = 0.28267
  6. 6. OKLCH

    oklch(0.28267 0.13513 291.089)
    rounded: oklch(0.283 0.135 291.1)

Alle Formate

HEX
#2e1065
RGB
rgb(46 16 101)
RGB (legacy)
rgb(46, 16, 101)
HSL
hsl(261.18 72.65% 22.94%) → hsl(261 73% 23%)
HWB
hwb(261 6% 60%)
OKLCH
oklch(0.283 0.135 291.1) · oklch(28.3% 0.135 291.1)
OKLab
oklab(0.283 0.049 -0.126)
Lab (D50)
lab(14.22 31.30 -44.79)
LCH (D50)
lch(14.22 54.64 304.94)
Display P3
color(display-p3 0.1656 0.0694 0.3801)
Linear sRGB
color(srgb-linear 0.0273 0.0052 0.1301)

Gamut: sRGB und Display P3

#2E1065 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.159, Display P3 von 0.163; diese Farbe nutzt 85 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #2e1065;
  color: rgb(46 16 101);
  color: hsl(261 73% 23%);
  color: oklch(0.283 0.135 291.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.283 0.135 291.1);
}
/* arbitrary values */
class="text-[#2e1065] bg-[oklch(0.283_0.135_291.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1656 0.0694 0.3801); }
}

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

  • #3C2377 · oklch(0.343 0.135 291.1) · ΔL +0.06
  • #210053 · oklch(0.223 0.135 291.1) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →