#FB8AFE#FB8AFE

#FB8AFE is a light, vivid purple. Relative luminance 0.458; OKLCH L 79.5% C 0.196 H 326.3°. Best body text is #000000 at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#FB8AFE
RGBrgb(251, 138, 254)
HSLhsl(298, 98%, 77%)
HSVhsv(298, 46%, 100%)
CMYKcmyk(1.2%, 45.7%, 0%, 0.4%)
CIE-LABlab(73.44, 58.92, -39.59)
CIE-LCHlch(73.44, 70.98, 326.10°)
OKLaboklab(79.53% 0.1626 -0.1086)
OKLCHoklch(79.53% 0.196 326.3)
XYZxyz(66.7602, 45.8453, 99.0792)
Luminance0.4584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB8AFE #8DFE8A
analogous
#C18AFE #FB8AFE #FE8AC7
triadic
#FB8AFE #FEFB8A #8AFEFB
tetradic
#FB8AFE #FEC18A #8DFE8A #8AC7FE
square
#FB8AFE #FEC18A #8DFE8A #8AC7FE
split-complementary
#FB8AFE #C7FE8A #8AFEC1
monochromatic
#F711FD #F94DFD #FB8AFE #FDC7FF #FEE1FF

Accessibility & contrast

On white

2.07
#FB8AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.17
#FB8AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB8AFE
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB8AFE#FFFFFF#000000##000000
##FB8AFE1.002.0710.1710.17
#FFFFFF2.071.0021.0021.00
#00000010.1721.001.001.00
##00000010.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FABFF
Deuteranopia (green-blind)
#9FBAFA
Tritanopia (blue-blind)
#FF96B8
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #fb8afe;
/* rgb */ color: rgb(251, 138, 254);
/* oklch */ color: oklch(79.5% 0.196 326.3);
Tailwind
colors: {
  custom: {
    50: '#ffafff',
    500: '#fb8afe',
    950: '#000000',
  },
}
SCSS
$custom: #fb8afe;
$custom-light: #ffafff;
$custom-dark: #000000;
JSON
{
  "hex": "#fb8afe",
  "rgb": {
    "r": 251,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 298.448,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.7953,
    "c": 0.19554,
    "h": 326.3
  },
  "luminance": 0.45842
}

Semantic roles & 50–950 ramp

primary
#FB8AFE
secondary
#D5F7D4
accent
#E60006
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#181118
muted
#868086

Preview Lab

Preview with #FB8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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