HEX in OKLCH: #FFA2A2

Auch bekannt als: Tailwind red-300

Ergebnis

#FFA2A2 → oklch(0.805 0.111 19.8)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #ffa2a2. 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: 255/255 = 1.00000 → 1.000000  (((x + 0.055) / 1.055)^2.4)
    G: 162/255 = 0.63529 → 0.361307  (((x + 0.055) / 1.055)^2.4)
    B: 162/255 = 0.63529 → 0.361307  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.624590
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.496648
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.417705
  3. 3. cube root

    l′ = ∛0.624590 = 0.854801
    m′ = ∛0.496648 = 0.791923
    s′ = ∛0.417705 = 0.747521
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.11091
    H = atan2(b, a) = 19.782°
    L = 0.80534
  6. 6. OKLCH

    oklch(0.80534 0.11091 19.782)
    rounded: oklch(0.805 0.111 19.8)

Alle Formate

HEX
#ffa2a2
RGB
rgb(255 162 162)
RGB (legacy)
rgb(255, 162, 162)
HSL
hsl(0.00 100.00% 81.76%) → hsl(0 100% 82%)
HWB
hwb(0 64% 0%)
OKLCH
oklch(0.805 0.111 19.8) · oklch(80.5% 0.111 19.8)
OKLab
oklab(0.805 0.104 0.038)
Lab (D50)
lab(76.28 35.40 15.25)
LCH (D50)
lch(76.28 38.54 23.31)
Display P3
color(display-p3 0.9484 0.6519 0.6439)
Linear sRGB
color(srgb-linear 1.0000 0.3613 0.3613)

Gamut: sRGB und Display P3

#FFA2A2 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.111, Display P3 von 0.143; diese Farbe nutzt 100 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #ffa2a2;
  color: rgb(255 162 162);
  color: hsl(0 100% 82%);
  color: oklch(0.805 0.111 19.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.805 0.111 19.8);
}
/* arbitrary values */
class="text-[#ffa2a2] bg-[oklch(0.805_0.111_19.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9484 0.6519 0.6439); }
}

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

  • #FFB5B5 · oklch(0.865 0.111 19.8) · ΔL +0.06
  • #EA8F90 · oklch(0.745 0.111 19.8) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →