#FF51E2#FF51E2

#FF51E2 is a light, highly saturated pink. Relative luminance 0.326; OKLCH L 72.2% C 0.256 H 335.4°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#FF51E2
RGBrgb(255, 81, 226)
HSLhsl(310, 100%, 66%)
HSVhsv(310, 68%, 100%)
CMYKcmyk(0%, 68.2%, 11.4%, 0%)
CIE-LABlab(63.87, 79.62, -39.07)
CIE-LCHlch(63.87, 88.69, 333.86°)
OKLaboklab(72.22% 0.2324 -0.1066)
OKLCHoklch(72.22% 0.256 335.4)
XYZxyz(57.9106, 32.6408, 75.1871)
Luminance0.3264 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51E2 #51FF6E
analogous
#C551FF #FF51E2 #FF518B
triadic
#FF51E2 #E2FF51 #51E2FF
tetradic
#FF51E2 #FFC551 #51FF6E #518BFF
square
#FF51E2 #FFC551 #51FF6E #518BFF
split-complementary
#FF51E2 #8BFF51 #51FFC5
monochromatic
#D600B2 #FF14D8 #FF51E2 #FF8EEC #FFCBF6

Accessibility & contrast

On white

2.79
#FF51E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#FF51E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51E2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51E2#FFFFFF#000000##000000
##FF51E21.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#8DA4DE
Tritanopia (blue-blind)
#FF5D93
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ff51e2;
/* rgb */ color: rgb(255, 81, 226);
/* oklch */ color: oklch(72.2% 0.256 335.4);
Tailwind
colors: {
  custom: {
    50: '#ff8feb',
    500: '#ff51e2',
    950: '#000000',
  },
}
SCSS
$custom: #ff51e2;
$custom-light: #ff8feb;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51e2",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 310,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.72218,
    "c": 0.25567,
    "h": 335.4
  },
  "luminance": 0.32636
}

Semantic roles & 50–950 ramp

primary
#FF51E2
secondary
#B9F3C3
accent
#E62600
background
#FFF9FE
surface
#FFF2FD
border
#D7CCD5
text
#190E16
muted
#877E84

Preview Lab

Preview with #FF51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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