#FB7AFE#FB7AFE

#FB7AFE is a light, highly saturated purple. Relative luminance 0.416; OKLCH L 77.4% C 0.220 H 326.6°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#FB7AFE
RGBrgb(251, 122, 254)
HSLhsl(299, 99%, 74%)
HSVhsv(299, 52%, 100%)
CMYKcmyk(1.2%, 52%, 0%, 0.4%)
CIE-LABlab(70.59, 66.47, -44.06)
CIE-LCHlch(70.59, 79.74, 326.46°)
OKLaboklab(77.42% 0.1838 -0.1213)
OKLCHoklch(77.42% 0.22 326.6)
XYZxyz(64.6314, 41.5877, 98.3696)
Luminance0.4158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7AFE #7DFE7A
analogous
#B97AFE #FB7AFE #FE7ABF
triadic
#FB7AFE #FEFB7A #7AFEFB
tetradic
#FB7AFE #FEB97A #7DFE7A #7ABFFE
square
#FB7AFE #FEB97A #7DFE7A #7ABFFE
split-complementary
#FB7AFE #BFFE7A #7AFEB9
monochromatic
#F602FC #F93DFE #FB7AFE #FDB7FE #FEE1FF

Accessibility & contrast

On white

2.25
#FB7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#FB7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7AFE
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7AFE#FFFFFF#000000##000000
##FB7AFE1.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#94B3FA
Tritanopia (blue-blind)
#FF89B1
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #fb7afe;
/* rgb */ color: rgb(251, 122, 254);
/* oklch */ color: oklch(77.4% 0.220 326.6);
Tailwind
colors: {
  custom: {
    50: '#ffa6ff',
    500: '#fb7afe',
    950: '#000000',
  },
}
SCSS
$custom: #fb7afe;
$custom-light: #ffa6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7afe",
  "rgb": {
    "r": 251,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 298.636,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.77416,
    "c": 0.22017,
    "h": 326.6
  },
  "luminance": 0.41584
}

Semantic roles & 50–950 ramp

primary
#FB7AFE
secondary
#D5F7D4
accent
#E60005
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#181018
muted
#867F86

Preview Lab

Preview with #FB7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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