#FF51D7#FF51D7

#FF51D7 is a light, highly saturated pink. Relative luminance 0.321; OKLCH L 71.7% C 0.248 H 338.5°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#FF51D7
RGBrgb(255, 81, 215)
HSLhsl(314, 100%, 66%)
HSVhsv(314, 68%, 100%)
CMYKcmyk(0%, 68.2%, 15.7%, 0%)
CIE-LABlab(63.39, 78.09, -33.65)
CIE-LCHlch(63.39, 85.03, 336.69°)
OKLaboklab(71.71% 0.2311 -0.0911)
OKLCHoklch(71.71% 0.248 338.5)
XYZxyz(56.4494, 32.0564, 67.4913)
Luminance0.3205 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FF51D7 #51FF79
analogous
#D051FF #FF51D7 #FF5180
triadic
#FF51D7 #D7FF51 #51D7FF
tetradic
#FF51D7 #FFD051 #51FF79 #5180FF
square
#FF51D7 #FFD051 #51FF79 #5180FF
split-complementary
#FF51D7 #80FF51 #51FFD0
monochromatic
#D600A4 #FF14C9 #FF51D7 #FF8EE5 #FFCBF3

Accessibility & contrast

On white

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

On black

7.41
#FF51D7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FF51D7
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FF51D7#FFFFFF#000000##000000
##FF51D71.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5988DB
Deuteranopia (green-blind)
#91A3D3
Tritanopia (blue-blind)
#FF588D
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ff51d7;
/* rgb */ color: rgb(255, 81, 215);
/* oklch */ color: oklch(71.7% 0.248 338.5);
Tailwind
colors: {
  custom: {
    50: '#ff8fe3',
    500: '#ff51d7',
    950: '#000000',
  },
}
SCSS
$custom: #ff51d7;
$custom-light: #ff8fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#ff51d7",
  "rgb": {
    "r": 255,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 313.793,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.71714,
    "c": 0.24841,
    "h": 338.5
  },
  "luminance": 0.32051
}

Semantic roles & 50–950 ramp

primary
#FF51D7
secondary
#B9F3C6
accent
#E63500
background
#FFF9FD
surface
#FFF2FB
border
#D7CCD4
text
#190E15
muted
#877E83

Preview Lab

Preview with #FF51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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