#FB7DF2#FB7DF2

#FB7DF2 is a light, highly saturated purple. Relative luminance 0.416; OKLCH L 77.2% C 0.205 H 330.1°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#FB7DF2
RGBrgb(251, 125, 242)
HSLhsl(304, 94%, 74%)
HSVhsv(304, 50%, 98%)
CMYKcmyk(0%, 50.2%, 3.6%, 1.6%)
CIE-LABlab(70.59, 63.06, -37.49)
CIE-LCHlch(70.59, 73.36, 329.27°)
OKLaboklab(77.25% 0.1781 -0.1025)
OKLCHoklch(77.25% 0.205 330.1)
XYZxyz(63.1437, 41.5911, 88.6892)
Luminance0.4159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7DF2 #7DFB86
analogous
#C57DFB #FB7DF2 #FB7DB3
triadic
#FB7DF2 #F2FB7D #7DF2FB
tetradic
#FB7DF2 #FBC57D #7DFB86 #7DB3FB
square
#FB7DF2 #FBC57D #7DFB86 #7DB3FB
split-complementary
#FB7DF2 #B3FB7D #7DFBC5
monochromatic
#F608E5 #F942EC #FB7DF2 #FDB8F8 #FEE1FC

Accessibility & contrast

On white

2.25
#FB7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#FB7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7DF2
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7DF2#FFFFFF#000000##000000
##FB7DF21.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#9BB3EE
Tritanopia (blue-blind)
#FF88AD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #fb7df2;
/* rgb */ color: rgb(251, 125, 242);
/* oklch */ color: oklch(77.2% 0.205 330.1);
Tailwind
colors: {
  custom: {
    50: '#ffa7f6',
    500: '#fb7df2',
    950: '#000000',
  },
}
SCSS
$custom: #fb7df2;
$custom-light: #ffa7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7df2",
  "rgb": {
    "r": 251,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 304.286,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.77249,
    "c": 0.20549,
    "h": 330.1
  },
  "luminance": 0.41587
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FB7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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