#FF51D8#FF51D8

#FF51D8 is a light, highly saturated pink. Relative luminance 0.321; OKLCH L 71.8% C 0.249 H 338.2°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#FF51D8
RGBrgb(255, 81, 216)
HSLhsl(313, 100%, 66%)
HSVhsv(313, 68%, 100%)
CMYKcmyk(0%, 68.2%, 15.3%, 0%)
CIE-LABlab(63.43, 78.23, -34.14)
CIE-LCHlch(63.43, 85.35, 336.42°)
OKLaboklab(71.76% 0.2312 -0.0925)
OKLCHoklch(71.76% 0.249 338.2)
XYZxyz(56.5783, 32.1079, 68.1701)
Luminance0.3210 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51D8 #51FF78
analogous
#CF51FF #FF51D8 #FF5181
triadic
#FF51D8 #D8FF51 #51D8FF
tetradic
#FF51D8 #FFCF51 #51FF78 #5181FF
square
#FF51D8 #FFCF51 #51FF78 #5181FF
split-complementary
#FF51D8 #81FF51 #51FFCF
monochromatic
#D600A6 #FF14CA #FF51D8 #FF8EE6 #FFCBF3

Accessibility & contrast

On white

2.83
#FF51D8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#FF51D8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51D8
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51D8#FFFFFF#000000##000000
##FF51D81.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5888DC
Deuteranopia (green-blind)
#91A3D4
Tritanopia (blue-blind)
#FF598E
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ff51d8;
/* rgb */ color: rgb(255, 81, 216);
/* oklch */ color: oklch(71.8% 0.249 338.2);
Tailwind
colors: {
  custom: {
    50: '#ff8fe4',
    500: '#ff51d8',
    950: '#000000',
  },
}
SCSS
$custom: #ff51d8;
$custom-light: #ff8fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51d8",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 313.448,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.71759,
    "c": 0.24905,
    "h": 338.2
  },
  "luminance": 0.32103
}

Semantic roles & 50–950 ramp

primary
#FF51D8
secondary
#B9F3C6
accent
#E63300
background
#FFF9FE
surface
#FFF2FC
border
#D7CCD5
text
#190E15
muted
#877E84

Preview Lab

Preview with #FF51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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