#FB87F2#FB87F2

#FB87F2 is a light, vivid purple. Relative luminance 0.442; OKLCH L 78.6% C 0.190 H 330.1°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#FB87F2
RGBrgb(251, 135, 242)
HSLhsl(305, 94%, 76%)
HSVhsv(305, 46%, 98%)
CMYKcmyk(0%, 46.2%, 3.6%, 1.6%)
CIE-LABlab(72.40, 58.31, -34.68)
CIE-LCHlch(72.40, 67.84, 329.25°)
OKLaboklab(78.59% 0.1646 -0.0945)
OKLCHoklch(78.59% 0.19 330.1)
XYZxyz(64.4740, 44.2516, 89.1326)
Luminance0.4425 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB87F2 #87FB90
analogous
#CA87FB #FB87F2 #FB87B8
triadic
#FB87F2 #F2FB87 #87F2FB
tetradic
#FB87F2 #FBCA87 #87FB90 #87B8FB
square
#FB87F2 #FBCA87 #87FB90 #87B8FB
split-complementary
#FB87F2 #B8FB87 #87FBCA
monochromatic
#F711E5 #F94CEC #FB87F2 #FDC2F8 #FEE1FC

Accessibility & contrast

On white

2.13
#FB87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.85
#FB87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB87F2
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB87F2#FFFFFF#000000##000000
##FB87F21.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A8F6
Deuteranopia (green-blind)
#A2B7EF
Tritanopia (blue-blind)
#FF90B1
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #fb87f2;
/* rgb */ color: rgb(251, 135, 242);
/* oklch */ color: oklch(78.6% 0.190 330.1);
Tailwind
colors: {
  custom: {
    50: '#ffadf6',
    500: '#fb87f2',
    950: '#000000',
  },
}
SCSS
$custom: #fb87f2;
$custom-light: #ffadf6;
$custom-dark: #000000;
JSON
{
  "hex": "#fb87f2",
  "rgb": {
    "r": 251,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 304.655,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.7859,
    "c": 0.18981,
    "h": 330.1
  },
  "luminance": 0.44248
}

Semantic roles & 50–950 ramp

primary
#FB87F2
secondary
#D5F6D7
accent
#E61200
background
#FFFAFF
surface
#FFF5FE
border
#D7CFD6
text
#181017
muted
#867F85

Preview Lab

Preview with #FB87F2

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FB87F2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva