#DF51D5#DF51D5

#DF51D5 is a light, highly saturated purple. Relative luminance 0.264; OKLCH L 67.1% C 0.229 H 330.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#DF51D5
RGBrgb(223, 81, 213)
HSLhsl(304, 69%, 60%)
HSVhsv(304, 64%, 87%)
CMYKcmyk(0%, 63.7%, 4.5%, 12.5%)
CIE-LABlab(58.40, 70.13, -40.68)
CIE-LCHlch(58.40, 81.08, 329.88°)
OKLaboklab(67.11% 0.1993 -0.1118)
OKLCHoklch(67.11% 0.229 330.7)
XYZxyz(45.3839, 26.3803, 65.6394)
Luminance0.2638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF51D5 #51DF5B
analogous
#A251DF #DF51D5 #DF518E
triadic
#DF51D5 #D5DF51 #51D5DF
tetradic
#DF51D5 #DFA251 #51DF5B #518EDF
square
#DF51D5 #DFA251 #51DF5B #518EDF
split-complementary
#DF51D5 #8EDF51 #51DFA2
monochromatic
#991C91 #CD26C1 #DF51D5 #E985E1 #F2B8EE

Accessibility & contrast

On white

3.35
#DF51D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#DF51D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF51D5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF51D5#FFFFFF#000000##000000
##DF51D51.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4780D9
Deuteranopia (green-blind)
#7993D1
Tritanopia (blue-blind)
#E7608C
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #df51d5;
/* rgb */ color: rgb(223, 81, 213);
/* oklch */ color: oklch(67.1% 0.229 330.7);
Tailwind
colors: {
  custom: {
    50: '#ec8be2',
    500: '#df51d5',
    950: '#000000',
  },
}
SCSS
$custom: #df51d5;
$custom-light: #ec8be2;
$custom-dark: #000000;
JSON
{
  "hex": "#df51d5",
  "rgb": {
    "r": 223,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 304.225,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.67108,
    "c": 0.2285,
    "h": 330.7
  },
  "luminance": 0.26377
}

Semantic roles & 50–950 ramp

primary
#DF51D5
secondary
#AAE1AE
accent
#EC483C
background
#FEF9FD
surface
#FDF1FB
border
#D5CBD4
text
#170D15
muted
#857E83

Preview Lab

Preview with #DF51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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