HEX to RGB: #F9A8D4

Also known as: Tailwind v3 pink-300

Result

#F9A8D4 → rgb(249 168 212)

Values are shown at full precision, so converting back gives exactly #f9a8d4. 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. HEX → pairs

    #F9A8D4 → F9 | A8 | D4
  2. 2. base 16 → base 10

    R = F9₁₆ = 15×16 + 9 = 249
    G = A8₁₆ = 10×16 + 8 = 168
    B = D4₁₆ = 13×16 + 4 = 212
  3. 3. RGB

    rgb(249 168 212)

All formats

HEX
#f9a8d4
RGB
rgb(249 168 212)
RGB (legacy)
rgb(249, 168, 212)
HSL
hsl(327.41 87.10% 81.76%) → hsl(327 87% 82%)
HWB
hwb(327 66% 2%)
OKLCH
oklch(0.823 0.110 346.0) · oklch(82.3% 0.110 346.0)
OKLab
oklab(0.823 0.106 -0.026)
Lab (D50)
lab(77.96 35.23 -9.63)
LCH (D50)
lch(77.96 36.52 344.72)
Display P3
color(display-p3 0.9303 0.6726 0.8233)
Linear sRGB
color(srgb-linear 0.9473 0.3916 0.6584)

Gamut: sRGB and Display P3

#F9A8D4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.124 and Display P3 reaches 0.164; this color uses 88% of the sRGB chroma available.

CSS snippets

.element {
  color: #f9a8d4;
  color: rgb(249 168 212);
  color: hsl(327 87% 82%);
  color: oklch(0.823 0.110 346.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.823 0.110 346.0);
}
/* arbitrary values */
class="text-[#f9a8d4] bg-[oklch(0.823_0.110_346.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9303 0.6726 0.8233); }
}

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

  • #FFBBE8 · oklch(0.883 0.110 346.0) · ΔL +0.06
  • #E595C1 · oklch(0.763 0.110 346.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?