#FB7AF2#FB7AF2

#FB7AF2 is a light, highly saturated purple. Relative luminance 0.408; OKLCH L 76.9% C 0.210 H 330.1°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#FB7AF2
RGBrgb(251, 122, 242)
HSLhsl(304, 94%, 73%)
HSVhsv(304, 51%, 98%)
CMYKcmyk(0%, 51.4%, 3.6%, 1.6%)
CIE-LABlab(70.07, 64.45, -38.30)
CIE-LCHlch(70.07, 74.97, 329.27°)
OKLaboklab(76.86% 0.1821 -0.1048)
OKLCHoklch(76.86% 0.21 330.1)
XYZxyz(62.7696, 40.8430, 88.5645)
Luminance0.4084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7AF2 #7AFB83
analogous
#C37AFB #FB7AF2 #FB7AB1
triadic
#FB7AF2 #F2FB7A #7AF2FB
tetradic
#FB7AF2 #FBC37A #7AFB83 #7AB1FB
square
#FB7AF2 #FBC37A #7AFB83 #7AB1FB
split-complementary
#FB7AF2 #B1FB7A #7AFBC3
monochromatic
#F307E3 #F93FEC #FB7AF2 #FDB5F8 #FEE1FC

Accessibility & contrast

On white

2.29
#FB7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#FB7AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7AF2
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7AF2#FFFFFF#000000##000000
##FB7AF21.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#99B2EE
Tritanopia (blue-blind)
#FF86AB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #fb7af2;
/* rgb */ color: rgb(251, 122, 242);
/* oklch */ color: oklch(76.9% 0.210 330.1);
Tailwind
colors: {
  custom: {
    50: '#ffa5f6',
    500: '#fb7af2',
    950: '#000000',
  },
}
SCSS
$custom: #fb7af2;
$custom-light: #ffa5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7af2",
  "rgb": {
    "r": 251,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 304.186,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.76863,
    "c": 0.21007,
    "h": 330.1
  },
  "luminance": 0.40839
}

Semantic roles & 50–950 ramp

primary
#FB7AF2
secondary
#D5F6D7
accent
#E61000
background
#FFFAFF
surface
#FFF4FE
border
#D7CED6
text
#181017
muted
#867F85

Preview Lab

Preview with #FB7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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