RGB to HEX: #FB64B6

Also known as: Tailwind pink-400

Result

rgb(251 100 182) → #FB64B6

Values are shown at full precision, so converting back gives exactly #fb64b6. 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. base 10 → base 16

    R = 251 = 15×16 + 11 → FB
    G = 100 = 6×16 + 4 → 64
    B = 182 = 11×16 + 6 → B6
  2. 2. pairs → HEX

    FB 64 B6 → #FB64B6

All formats

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 and Display P3

#FB64B6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.213 and Display P3 reaches 0.277; this color uses 95% of the sRGB chroma available.

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); }

Nearby colors

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

Lighter and darker, same hue and chroma

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

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?