#FB7AFB#FB7AFB

#FB7AFB is a light, highly saturated purple. Relative luminance 0.414; OKLCH L 77.3% C 0.218 H 327.4°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#FB7AFB
RGBrgb(251, 122, 251)
HSLhsl(300, 94%, 73%)
HSVhsv(300, 51%, 98%)
CMYKcmyk(0%, 51.4%, 0%, 1.6%)
CIE-LABlab(70.45, 65.96, -42.63)
CIE-LCHlch(70.45, 78.53, 327.12°)
OKLaboklab(77.28% 0.1834 -0.1171)
OKLCHoklch(77.28% 0.218 327.4)
XYZxyz(64.1547, 41.3970, 95.8593)
Luminance0.4139 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7AFB #7AFB7A
analogous
#BA7AFB #FB7AFB #FB7ABA
triadic
#FB7AFB #FBFB7A #7AFBFB
tetradic
#FB7AFB #FBBA7A #7AFB7A #7ABAFB
square
#FB7AFB #FBBA7A #7AFB7A #7ABAFB
split-complementary
#FB7AFB #BAFB7A #7AFBBA
monochromatic
#F307F3 #F93FF9 #FB7AFB #FDB5FD #FEE1FE

Accessibility & contrast

On white

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

On black

9.28
#FB7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7AFB
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7AFB#FFFFFF#000000##000000
##FB7AFB1.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA2FF
Deuteranopia (green-blind)
#95B2F7
Tritanopia (blue-blind)
#FF88B0
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #fb7afb;
/* rgb */ color: rgb(251, 122, 251);
/* oklch */ color: oklch(77.3% 0.218 327.4);
Tailwind
colors: {
  custom: {
    50: '#ffa5fd',
    500: '#fb7afb',
    950: '#000000',
  },
}
SCSS
$custom: #fb7afb;
$custom-light: #ffa5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7afb",
  "rgb": {
    "r": 251,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 300,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.77276,
    "c": 0.2176,
    "h": 327.4
  },
  "luminance": 0.41393
}

Semantic roles & 50–950 ramp

primary
#FB7AFB
secondary
#D5F6D5
accent
#E60000
background
#FFFAFF
surface
#FFF4FF
border
#D7CED7
text
#181017
muted
#867F85

Preview Lab

Preview with #FB7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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