#FB7AFA#FB7AFA

#FB7AFA is a light, highly saturated purple. Relative luminance 0.413; OKLCH L 77.2% C 0.217 H 327.7°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#FB7AFA
RGBrgb(251, 122, 250)
HSLhsl(300, 94%, 73%)
HSVhsv(300, 51%, 98%)
CMYKcmyk(0%, 51.4%, 0.4%, 1.6%)
CIE-LABlab(70.41, 65.79, -42.15)
CIE-LCHlch(70.41, 78.13, 327.35°)
OKLaboklab(77.23% 0.1832 -0.1158)
OKLCHoklch(77.23% 0.217 327.7)
XYZxyz(63.9975, 41.3341, 95.0313)
Luminance0.4133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7AFA #7AFB7B
analogous
#BB7AFB #FB7AFA #FB7AB9
triadic
#FB7AFA #FAFB7A #7AFAFB
tetradic
#FB7AFA #FBBB7A #7AFB7B #7AB9FB
square
#FB7AFA #FBBB7A #7AFB7B #7AB9FB
split-complementary
#FB7AFA #B9FB7A #7AFBBB
monochromatic
#F307F1 #F93FF8 #FB7AFA #FDB5FC #FEE1FE

Accessibility & contrast

On white

2.27
#FB7AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#FB7AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7AFA
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7AFA#FFFFFF#000000##000000
##FB7AFA1.002.279.279.27
#FFFFFF2.271.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA1FE
Deuteranopia (green-blind)
#96B2F6
Tritanopia (blue-blind)
#FF88AF
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #fb7afa;
/* rgb */ color: rgb(251, 122, 250);
/* oklch */ color: oklch(77.2% 0.217 327.7);
Tailwind
colors: {
  custom: {
    50: '#ffa5fc',
    500: '#fb7afa',
    950: '#000000',
  },
}
SCSS
$custom: #fb7afa;
$custom-light: #ffa5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7afa",
  "rgb": {
    "r": 251,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 300.465,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.77229,
    "c": 0.21675,
    "h": 327.7
  },
  "luminance": 0.4133
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FB7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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