#FF51DC#FF51DC

#FF51DC is a light, highly saturated pink. Relative luminance 0.323; OKLCH L 71.9% C 0.252 H 337.0°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#FF51DC
RGBrgb(255, 81, 220)
HSLhsl(312, 100%, 66%)
HSVhsv(312, 68%, 100%)
CMYKcmyk(0%, 68.2%, 13.7%, 0%)
CIE-LABlab(63.60, 78.78, -36.12)
CIE-LCHlch(63.60, 86.66, 335.37°)
OKLaboklab(71.94% 0.2317 -0.0981)
OKLCHoklch(71.94% 0.252 337)
XYZxyz(57.1017, 32.3173, 70.9268)
Luminance0.3231 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51DC #51FF74
analogous
#CB51FF #FF51DC #FF5185
triadic
#FF51DC #DCFF51 #51DCFF
tetradic
#FF51DC #FFCB51 #51FF74 #5185FF
square
#FF51DC #FFCB51 #51FF74 #5185FF
split-complementary
#FF51DC #85FF51 #51FFCB
monochromatic
#D600AB #FF14D0 #FF51DC #FF8EE8 #FFCBF5

Accessibility & contrast

On white

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

On black

7.46
#FF51DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51DC
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51DC#FFFFFF#000000##000000
##FF51DC1.002.817.467.46
#FFFFFF2.811.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689E0
Deuteranopia (green-blind)
#8FA4D8
Tritanopia (blue-blind)
#FF5B90
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ff51dc;
/* rgb */ color: rgb(255, 81, 220);
/* oklch */ color: oklch(71.9% 0.252 337.0);
Tailwind
colors: {
  custom: {
    50: '#ff8fe7',
    500: '#ff51dc',
    950: '#000000',
  },
}
SCSS
$custom: #ff51dc;
$custom-light: #ff8fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51dc",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 312.069,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.7194,
    "c": 0.25166,
    "h": 337
  },
  "luminance": 0.32312
}

Semantic roles & 50–950 ramp

primary
#FF51DC
secondary
#B9F3C5
accent
#E62E00
background
#FFF9FE
surface
#FFF2FC
border
#D7CCD5
text
#190E16
muted
#877E84

Preview Lab

Preview with #FF51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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