HEX in OKLCH: #6A5ACD

Auch bekannt als: CSS slateblue

Ergebnis

#6A5ACD → oklch(0.544 0.171 285.5)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #6a5acd. 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: 106/255 = 0.41569 → 0.144128  (((x + 0.055) / 1.055)^2.4)
    G: 90/255 = 0.35294 → 0.102242  (((x + 0.055) / 1.055)^2.4)
    B: 205/255 = 0.80392 → 0.610496  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.145656
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.165703
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.426130
  3. 3. cube root

    l′ = ∛0.145656 = 0.526150
    m′ = ∛0.165703 = 0.549258
    s′ = ∛0.426130 = 0.752513
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.17123
    H = atan2(b, a) = 285.541°
    L = 0.54357
  6. 6. OKLCH

    oklch(0.54357 0.17123 285.541)
    rounded: oklch(0.544 0.171 285.5)

Alle Formate

HEX
#6a5acd
RGB
rgb(106 90 205)
RGB (legacy)
rgb(106, 90, 205)
HSL
hsl(248.35 53.49% 57.84%) → hsl(248 53% 58%)
HWB
hwb(248 35% 20%)
OKLCH
oklch(0.544 0.171 285.5) · oklch(54.4% 0.171 285.5)
OKLab
oklab(0.544 0.046 -0.165)
Lab (D50)
lab(44.57 29.65 -58.72)
LCH (D50)
lch(44.57 65.78 296.79)
Display P3
color(display-p3 0.4054 0.3552 0.7771)
Linear sRGB
color(srgb-linear 0.1441 0.1022 0.6105)

Gamut: sRGB und Display P3

#6A5ACD 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.266, Display P3 von 0.286; diese Farbe nutzt 64 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #6a5acd;
  color: rgb(106 90 205);
  color: hsl(248 53% 58%);
  color: oklch(0.544 0.171 285.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.544 0.171 285.5);
}
/* arbitrary values */
class="text-[#6a5acd] bg-[oklch(0.544_0.171_285.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4054 0.3552 0.7771); }
}

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

  • #7B6DE1 · oklch(0.604 0.171 285.5) · ΔL +0.06
  • #5A47B9 · oklch(0.484 0.171 285.5) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →