#FB7CEC#FB7CEC

#FB7CEC is a light, highly saturated purple. Relative luminance 0.410; OKLCH L 76.9% C 0.202 H 332.0°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#FB7CEC
RGBrgb(251, 124, 236)
HSLhsl(307, 94%, 74%)
HSVhsv(307, 51%, 98%)
CMYKcmyk(0%, 50.6%, 6%, 1.6%)
CIE-LABlab(70.17, 62.54, -34.85)
CIE-LCHlch(70.17, 71.59, 330.87°)
OKLaboklab(76.85% 0.1784 -0.0949)
OKLCHoklch(76.85% 0.202 332)
XYZxyz(62.1314, 40.9846, 83.9789)
Luminance0.4098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB7CEC #7CFB8B
analogous
#CA7CFB #FB7CEC #FB7CAC
triadic
#FB7CEC #ECFB7C #7CECFB
tetradic
#FB7CEC #FBCA7C #7CFB8B #7CACFB
square
#FB7CEC #FBCA7C #7CFB8B #7CACFB
split-complementary
#FB7CEC #ACFB7C #7CFBCA
monochromatic
#F507D9 #F941E3 #FB7CEC #FDB7F5 #FEE1FB

Accessibility & contrast

On white

2.28
#FB7CEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#FB7CEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB7CEC
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB7CEC#FFFFFF#000000##000000
##FB7CEC1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A0F0
Deuteranopia (green-blind)
#9DB2E8
Tritanopia (blue-blind)
#FF85A9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #fb7cec;
/* rgb */ color: rgb(251, 124, 236);
/* oklch */ color: oklch(76.9% 0.202 332.0);
Tailwind
colors: {
  custom: {
    50: '#ffa6f2',
    500: '#fb7cec',
    950: '#000000',
  },
}
SCSS
$custom: #fb7cec;
$custom-light: #ffa6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#fb7cec",
  "rgb": {
    "r": 251,
    "g": 124,
    "b": 236
  },
  "hsl": {
    "h": 307.087,
    "s": 94.074,
    "l": 73.529
  },
  "oklch": {
    "l": 0.76855,
    "c": 0.20212,
    "h": 332
  },
  "luminance": 0.40981
}

Semantic roles & 50–950 ramp

primary
#FB7CEC
secondary
#D5F6D9
accent
#E61B00
background
#FFFAFE
surface
#FFF4FD
border
#D7CED5
text
#181017
muted
#867F85

Preview Lab

Preview with #FB7CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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