OKLCH to HEX: #FFF1F2

Also known as: Tailwind rose-50, Tailwind v3 rose-50

Result

oklch(0.96941 0.01517 12.422) → #FFF1F2

Values are shown at full precision, so converting back gives exactly #fff1f2. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. input

    oklch(0.96941 0.01517 12.422)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.01481
    b = C·sin H = 0.00326
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.975986
    m′ = L − 0.1056·a − 0.0639·b = 0.967638
    s′ = L − 0.0895·a − 1.2915·b = 0.963870
  4. 4. cube

    l = 0.975986³ = 0.929674
    m = 0.967638³ = 0.906021
    s = 0.963870³ = 0.895479
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 1.000012
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.879618
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.887919
  6. 6. linear → sRGB, × 255

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.94510 × 255 = 241.00 → 241
    B = 0.94902 × 255 = 242.00 → 242
  7. 7. RGB → HEX

    #FFF1F2

All formats

HEX
#fff1f2
RGB
rgb(255 241 242)
RGB (legacy)
rgb(255, 241, 242)
HSL
hsl(355.71 100.00% 97.25%) → hsl(356 100% 97%)
HWB
hwb(356 95% 0%)
OKLCH
oklch(0.969 0.015 12.4) · oklch(96.9% 0.015 12.4)
OKLab
oklab(0.969 0.015 0.003)
Lab (D50)
lab(96.28 5.00 1.29)
LCH (D50)
lch(96.28 5.16 14.52)
Display P3
color(display-p3 0.9905 0.9470 0.9496)
Linear sRGB
color(srgb-linear 1.0000 0.8796 0.8879)

Gamut: sRGB and Display P3

#FFF1F2 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.015 and Display P3 reaches 0.020; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #fff1f2;
  color: rgb(255 241 242);
  color: hsl(356 100% 97%);
  color: oklch(0.969 0.015 12.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.969 0.015 12.4);
}
/* arbitrary values */
class="text-[#fff1f2] bg-[oklch(0.969_0.015_12.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9905 0.9470 0.9496); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fff1f2 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #FFFBFC · oklch(1.000 0.015 12.4) · ΔL +0.06
  • #EBDDDE · oklch(0.909 0.015 12.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?