#FB7EF2#FB7EF2

#FB7EF2 is a light, highly saturated purple. Relative luminance 0.418; OKLCH L 77.4% C 0.204 H 330.1°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#FB7EF2
RGBrgb(251, 126, 242)
HSLhsl(304, 94%, 74%)
HSVhsv(304, 50%, 98%)
CMYKcmyk(0%, 49.8%, 3.6%, 1.6%)
CIE-LABlab(70.76, 62.59, -37.22)
CIE-LCHlch(70.76, 72.82, 329.26°)
OKLaboklab(77.38% 0.1768 -0.1017)
OKLCHoklch(77.38% 0.204 330.1)
XYZxyz(63.2709, 41.8456, 88.7316)
Luminance0.4184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7EF2 #7EFB87
analogous
#C67EFB #FB7EF2 #FB7EB4
triadic
#FB7EF2 #F2FB7E #7EF2FB
tetradic
#FB7EF2 #FBC67E #7EFB87 #7EB4FB
square
#FB7EF2 #FBC67E #7EFB87 #7EB4FB
split-complementary
#FB7EF2 #B4FB7E #7EFBC6
monochromatic
#F708E6 #F943EC #FB7EF2 #FDB9F8 #FEE1FC

Accessibility & contrast

On white

2.24
#FB7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.37
#FB7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7EF2
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7EF2#FFFFFF#000000##000000
##FB7EF21.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#9CB3EE
Tritanopia (blue-blind)
#FF89AD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #fb7ef2;
/* rgb */ color: rgb(251, 126, 242);
/* oklch */ color: oklch(77.4% 0.204 330.1);
Tailwind
colors: {
  custom: {
    50: '#ffa8f6',
    500: '#fb7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #fb7ef2;
$custom-light: #ffa8f6;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7ef2",
  "rgb": {
    "r": 251,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 304.32,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.77379,
    "c": 0.20395,
    "h": 330.1
  },
  "luminance": 0.41842
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FB7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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