#FB51EA#FB51EA

#FB51EA is a light, highly saturated purple. Relative luminance 0.323; OKLCH L 72.0% C 0.259 H 332.2°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#FB51EA
RGBrgb(251, 81, 234)
HSLhsl(306, 96%, 65%)
HSVhsv(306, 68%, 98%)
CMYKcmyk(0%, 67.7%, 6.8%, 1.6%)
CIE-LABlab(63.62, 79.87, -43.97)
CIE-LCHlch(63.62, 91.17, 331.17°)
OKLaboklab(72.04% 0.2292 -0.1207)
OKLCHoklch(72.04% 0.259 332.2)
XYZxyz(57.5775, 32.3392, 81.0355)
Luminance0.3234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB51EA #51FB62
analogous
#B751FB #FB51EA #FB5195
triadic
#FB51EA #EAFB51 #51EAFB
tetradic
#FB51EA #FBB751 #51FB62 #5195FB
square
#FB51EA #FBB751 #51FB62 #5195FB
split-complementary
#FB51EA #95FB51 #51FBB7
monochromatic
#CD05B9 #FA15E3 #FB51EA #FC8DF1 #FEC9F8

Accessibility & contrast

On white

2.81
#FB51EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#FB51EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB51EA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB51EA#FFFFFF#000000##000000
##FB51EA1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEE
Deuteranopia (green-blind)
#86A3E6
Tritanopia (blue-blind)
#FF6297
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #fb51ea;
/* rgb */ color: rgb(251, 81, 234);
/* oklch */ color: oklch(72.0% 0.259 332.2);
Tailwind
colors: {
  custom: {
    50: '#ff8ff1',
    500: '#fb51ea',
    950: '#000000',
  },
}
SCSS
$custom: #fb51ea;
$custom-light: #ff8ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#fb51ea",
  "rgb": {
    "r": 251,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 306,
    "s": 95.506,
    "l": 65.098
  },
  "oklch": {
    "l": 0.72041,
    "c": 0.25904,
    "h": 332.2
  },
  "luminance": 0.32335
}

Semantic roles & 50–950 ramp

primary
#FB51EA
secondary
#B7F1BD
accent
#E61700
background
#FFF9FE
surface
#FFF2FD
border
#D7CCD5
text
#190E17
muted
#877E85

Preview Lab

Preview with #FB51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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