#FB51EC#FB51EC

#FB51EC is a light, highly saturated purple. Relative luminance 0.325; OKLCH L 72.1% C 0.260 H 331.7°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#FB51EC
RGBrgb(251, 81, 236)
HSLhsl(305, 96%, 65%)
HSVhsv(305, 68%, 98%)
CMYKcmyk(0%, 67.7%, 6%, 1.6%)
CIE-LABlab(63.72, 80.16, -44.93)
CIE-LCHlch(63.72, 91.90, 330.73°)
OKLaboklab(72.14% 0.2293 -0.1235)
OKLCHoklch(72.14% 0.26 331.7)
XYZxyz(57.8664, 32.4548, 82.5573)
Luminance0.3245 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FB51EC #51FB60
analogous
#B551FB #FB51EC #FB5197
triadic
#FB51EC #ECFB51 #51ECFB
tetradic
#FB51EC #FBB551 #51FB60 #5197FB
square
#FB51EC #FBB551 #51FB60 #5197FB
split-complementary
#FB51EC #97FB51 #51FBB5
monochromatic
#CD05BB #FA15E5 #FB51EC #FC8DF3 #FEC9F9

Accessibility & contrast

On white

2.80
#FB51EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#FB51EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FB51EC
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FB51EC#FFFFFF#000000##000000
##FB51EC1.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#468BF0
Deuteranopia (green-blind)
#85A3E8
Tritanopia (blue-blind)
#FF6399
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #fb51ec;
/* rgb */ color: rgb(251, 81, 236);
/* oklch */ color: oklch(72.1% 0.260 331.7);
Tailwind
colors: {
  custom: {
    50: '#ff8ff2',
    500: '#fb51ec',
    950: '#000000',
  },
}
SCSS
$custom: #fb51ec;
$custom-light: #ff8ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#fb51ec",
  "rgb": {
    "r": 251,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 305.294,
    "s": 95.506,
    "l": 65.098
  },
  "oklch": {
    "l": 0.7214,
    "c": 0.26046,
    "h": 331.7
  },
  "luminance": 0.3245
}

Semantic roles & 50–950 ramp

primary
#FB51EC
secondary
#B7F1BC
accent
#E61400
background
#FFF9FE
surface
#FFF2FD
border
#D7CCD5
text
#190E17
muted
#877E85

Preview Lab

Preview with #FB51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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