#FB81EC#FB81EC

#FB81EC is a light, vivid purple. Relative luminance 0.423; OKLCH L 77.5% C 0.194 H 332.1°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#FB81EC
RGBrgb(251, 129, 236)
HSLhsl(307, 94%, 75%)
HSVhsv(307, 49%, 98%)
CMYKcmyk(0%, 48.6%, 6%, 1.6%)
CIE-LABlab(71.06, 60.18, -33.47)
CIE-LCHlch(71.06, 68.87, 330.92°)
OKLaboklab(77.52% 0.1717 -0.0911)
OKLCHoklch(77.52% 0.194 332.1)
XYZxyz(62.7739, 42.2698, 84.1931)
Luminance0.4227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB81EC #81FB90
analogous
#CD81FB #FB81EC #FB81AF
triadic
#FB81EC #ECFB81 #81ECFB
tetradic
#FB81EC #FBCD81 #81FB90 #81AFFB
square
#FB81EC #FBCD81 #81FB90 #81AFFB
split-complementary
#FB81EC #AFFB81 #81FBCD
monochromatic
#F70ADA #F946E3 #FB81EC #FDBCF5 #FEE1FB

Accessibility & contrast

On white

2.22
#FB81EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#FB81EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB81EC
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB81EC#FFFFFF#000000##000000
##FB81EC1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA3F0
Deuteranopia (green-blind)
#A0B4E8
Tritanopia (blue-blind)
#FF8AAC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #fb81ec;
/* rgb */ color: rgb(251, 129, 236);
/* oklch */ color: oklch(77.5% 0.194 332.1);
Tailwind
colors: {
  custom: {
    50: '#ffa9f2',
    500: '#fb81ec',
    950: '#000000',
  },
}
SCSS
$custom: #fb81ec;
$custom-light: #ffa9f2;
$custom-dark: #000000;
JSON
{
  "hex": "#fb81ec",
  "rgb": {
    "r": 251,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 307.377,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.77516,
    "c": 0.19433,
    "h": 332.1
  },
  "luminance": 0.42266
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FB81EC

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

Preview Lab → · Contrast checker → · Palette generator →

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