#FF51DB#FF51DB

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

Color values

HEX#FF51DB
RGBrgb(255, 81, 219)
HSLhsl(312, 100%, 66%)
HSVhsv(312, 68%, 100%)
CMYKcmyk(0%, 68.2%, 14.1%, 0%)
CIE-LABlab(63.56, 78.64, -35.63)
CIE-LCHlch(63.56, 86.33, 335.63°)
OKLaboklab(71.9% 0.2316 -0.0967)
OKLCHoklch(71.9% 0.251 337.3)
XYZxyz(56.9696, 32.2645, 70.2314)
Luminance0.3226 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51DB #51FF75
analogous
#CC51FF #FF51DB #FF5184
triadic
#FF51DB #DBFF51 #51DBFF
tetradic
#FF51DB #FFCC51 #51FF75 #5184FF
square
#FF51DB #FFCC51 #51FF75 #5184FF
split-complementary
#FF51DB #84FF51 #51FFCC
monochromatic
#D600A9 #FF14CE #FF51DB #FF8EE8 #FFCBF4

Accessibility & contrast

On white

2.82
#FF51DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#FF51DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51DB
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51DB#FFFFFF#000000##000000
##FF51DB1.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5689DF
Deuteranopia (green-blind)
#8FA4D7
Tritanopia (blue-blind)
#FF5A90
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ff51db;
/* rgb */ color: rgb(255, 81, 219);
/* oklch */ color: oklch(71.9% 0.251 337.3);
Tailwind
colors: {
  custom: {
    50: '#ff8fe6',
    500: '#ff51db',
    950: '#000000',
  },
}
SCSS
$custom: #ff51db;
$custom-light: #ff8fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51db",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 312.414,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.71895,
    "c": 0.25101,
    "h": 337.3
  },
  "luminance": 0.32259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FF51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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