#FB7AFD#FB7AFD

#FB7AFD is a light, highly saturated purple. Relative luminance 0.415; OKLCH L 77.4% C 0.219 H 326.9°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#FB7AFD
RGBrgb(251, 122, 253)
HSLhsl(299, 97%, 74%)
HSVhsv(299, 52%, 99%)
CMYKcmyk(0.8%, 51.8%, 0%, 0.8%)
CIE-LABlab(70.54, 66.30, -43.58)
CIE-LCHlch(70.54, 79.34, 326.68°)
OKLaboklab(77.37% 0.1836 -0.1199)
OKLCHoklch(77.37% 0.219 326.9)
XYZxyz(64.4717, 41.5238, 97.5285)
Luminance0.4152 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7AFD #7CFD7A
analogous
#B97AFD #FB7AFD #FD7ABD
triadic
#FB7AFD #FDFB7A #7AFDFB
tetradic
#FB7AFD #FDB97A #7CFD7A #7ABDFD
square
#FB7AFD #FDB97A #7CFD7A #7ABDFD
split-complementary
#FB7AFD #BDFD7A #7AFDB9
monochromatic
#F504F9 #F93EFC #FB7AFD #FDB6FE #FEE1FF

Accessibility & contrast

On white

2.26
#FB7AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#FB7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7AFD
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7AFD#FFFFFF#000000##000000
##FB7AFD1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fb7afd;
/* rgb */ color: rgb(251, 122, 253);
/* oklch */ color: oklch(77.4% 0.219 326.9);
Tailwind
colors: {
  custom: {
    50: '#ffa6fe',
    500: '#fb7afd',
    950: '#000000',
  },
}
SCSS
$custom: #fb7afd;
$custom-light: #ffa6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7afd",
  "rgb": {
    "r": 251,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 299.084,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.77369,
    "c": 0.21931,
    "h": 326.9
  },
  "luminance": 0.4152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FB7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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