HEX in OKLCH: #DC2626

Auch bekannt als: Tailwind v3 red-600

Ergebnis

#DC2626 → oklch(0.577 0.215 27.3)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #dc2626. 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: 220/255 = 0.86275 → 0.715694  (((x + 0.055) / 1.055)^2.4)
    G: 38/255 = 0.14902 → 0.019382  (((x + 0.055) / 1.055)^2.4)
    B: 38/255 = 0.14902 → 0.019382  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.306417
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.166933
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.080868
  3. 3. cube root

    l′ = ∛0.306417 = 0.674172
    m′ = ∛0.166933 = 0.550614
    s′ = ∛0.080868 = 0.432440
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.57710
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.19115
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.09877
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.21516
    H = atan2(b, a) = 27.325°
    L = 0.57710
  6. 6. OKLCH

    oklch(0.57710 0.21516 27.325)
    rounded: oklch(0.577 0.215 27.3)

Alle Formate

HEX
#dc2626
RGB
rgb(220 38 38)
RGB (legacy)
rgb(220, 38, 38)
HSL
hsl(0.00 72.22% 50.59%) → hsl(0 72% 51%)
HWB
hwb(0 15% 14%)
OKLCH
oklch(0.577 0.215 27.3) · oklch(57.7% 0.215 27.3)
OKLab
oklab(0.577 0.191 0.099)
Lab (D50)
lab(48.80 67.70 48.80)
LCH (D50)
lch(48.80 83.46 35.79)
Display P3
color(display-p3 0.7930 0.2280 0.1940)
Linear sRGB
color(srgb-linear 0.7157 0.0194 0.0194)

Gamut: sRGB und Display P3

#DC2626 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.235, Display P3 von 0.265; diese Farbe nutzt 91 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #dc2626;
  color: rgb(220 38 38);
  color: hsl(0 72% 51%);
  color: oklch(0.577 0.215 27.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.577 0.215 27.3);
}
/* arbitrary values */
class="text-[#dc2626] bg-[oklch(0.577_0.215_27.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7930 0.2280 0.1940); }
}

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

  • #F2403A · oklch(0.637 0.215 27.3) · ΔL +0.06
  • #C6000D · oklch(0.517 0.215 27.3) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →