HEX in OKLCH: #FB64B6

Auch bekannt als: Tailwind pink-400

Ergebnis

#FB64B6 → oklch(0.718 0.202 349.7)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #fb64b6. 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: 251/255 = 0.98431 → 0.964686  (((x + 0.055) / 1.055)^2.4)
    G: 100/255 = 0.39216 → 0.127438  (((x + 0.055) / 1.055)^2.4)
    B: 182/255 = 0.71373 → 0.467784  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.490079
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.341406
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.415780
  3. 3. cube root

    l′ = ∛0.490079 = 0.788416
    m′ = ∛0.341406 = 0.698914
    s′ = ∛0.415780 = 0.746370
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.20167
    H = atan2(b, a) = 349.700°
    L = 0.71756
  6. 6. OKLCH

    oklch(0.71756 0.20167 349.700)
    rounded: oklch(0.718 0.202 349.7)

Alle Formate

HEX
#fb64b6
RGB
rgb(251 100 182)
RGB (legacy)
rgb(251, 100, 182)
HSL
hsl(327.42 94.97% 68.82%) → hsl(327 95% 69%)
HWB
hwb(327 39% 2%)
OKLCH
oklch(0.718 0.202 349.7) · oklch(71.8% 0.202 349.7)
OKLab
oklab(0.718 0.198 -0.036)
Lab (D50)
lab(64.51 64.25 -12.86)
LCH (D50)
lch(64.51 65.52 348.68)
Display P3
color(display-p3 0.9143 0.4305 0.7026)
Linear sRGB
color(srgb-linear 0.9647 0.1274 0.4678)

Gamut: sRGB und Display P3

#FB64B6 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.213, Display P3 von 0.277; diese Farbe nutzt 95 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #fb64b6;
  color: rgb(251 100 182);
  color: hsl(327 95% 69%);
  color: oklch(0.718 0.202 349.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.718 0.202 349.7);
}
/* arbitrary values */
class="text-[#fb64b6] bg-[oklch(0.718_0.202_349.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9143 0.4305 0.7026); }
}

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

  • #FF78C9 · oklch(0.778 0.202 349.7) · ΔL +0.06
  • #E650A3 · oklch(0.658 0.202 349.7) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →