#FF51CB#FF51CB

#FF51CB is a light, highly saturated pink. Relative luminance 0.315; OKLCH L 71.2% C 0.241 H 342.1°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#FF51CB
RGBrgb(255, 81, 203)
HSLhsl(318, 100%, 66%)
HSVhsv(318, 68%, 100%)
CMYKcmyk(0%, 68.2%, 20.4%, 0%)
CIE-LABlab(62.90, 76.50, -27.64)
CIE-LCHlch(62.90, 81.34, 340.14°)
OKLaboklab(71.19% 0.2293 -0.0741)
OKLCHoklch(71.19% 0.241 342.1)
XYZxyz(54.9636, 31.4621, 59.6665)
Luminance0.3146 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51CB #51FF85
analogous
#DC51FF #FF51CB #FF5174
triadic
#FF51CB #CBFF51 #51CBFF
tetradic
#FF51CB #FFDC51 #51FF85 #5174FF
square
#FF51CB #FFDC51 #51FF85 #5174FF
split-complementary
#FF51CB #74FF51 #51FFDC
monochromatic
#D60096 #FF14B9 #FF51CB #FF8EDD #FFCBF0

Accessibility & contrast

On white

2.88
#FF51CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#FF51CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51CB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51CB#FFFFFF#000000##000000
##FF51CB1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6086CE
Deuteranopia (green-blind)
#95A2C7
Tritanopia (blue-blind)
#FF5387
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ff51cb;
/* rgb */ color: rgb(255, 81, 203);
/* oklch */ color: oklch(71.2% 0.241 342.1);
Tailwind
colors: {
  custom: {
    50: '#ff8edb',
    500: '#ff51cb',
    950: '#000000',
  },
}
SCSS
$custom: #ff51cb;
$custom-light: #ff8edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51cb",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 317.931,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.71194,
    "c": 0.24093,
    "h": 342.1
  },
  "luminance": 0.31457
}

Semantic roles & 50–950 ramp

primary
#FF51CB
secondary
#B9F3CA
accent
#E64500
background
#FFF9FD
surface
#FFF2FB
border
#D7CCD4
text
#190D15
muted
#877E83

Preview Lab

Preview with #FF51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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