#DF51D3#DF51D3

#DF51D3 is a light, highly saturated purple. Relative luminance 0.263; OKLCH L 67.0% C 0.227 H 331.3°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#DF51D3
RGBrgb(223, 81, 211)
HSLhsl(305, 69%, 60%)
HSVhsv(305, 64%, 87%)
CMYKcmyk(0%, 63.7%, 5.4%, 12.5%)
CIE-LABlab(58.30, 69.81, -39.70)
CIE-LCHlch(58.30, 80.31, 330.38°)
OKLaboklab(67.01% 0.1991 -0.109)
OKLCHoklch(67.01% 0.227 331.3)
XYZxyz(45.1316, 26.2793, 64.3108)
Luminance0.2628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF51D3 #51DF5D
analogous
#A451DF #DF51D3 #DF518C
triadic
#DF51D3 #D3DF51 #51D3DF
tetradic
#DF51D3 #DFA451 #51DF5D #518CDF
square
#DF51D3 #DFA451 #51DF5D #518CDF
split-complementary
#DF51D3 #8CDF51 #51DFA4
monochromatic
#991C8F #CD26BF #DF51D3 #E985E0 #F2B8ED

Accessibility & contrast

On white

3.36
#DF51D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#DF51D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF51D3
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF51D3#FFFFFF#000000##000000
##DF51D31.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#487FD7
Deuteranopia (green-blind)
#7A93CF
Tritanopia (blue-blind)
#E85F8B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #df51d3;
/* rgb */ color: rgb(223, 81, 211);
/* oklch */ color: oklch(67.0% 0.227 331.3);
Tailwind
colors: {
  custom: {
    50: '#ec8be1',
    500: '#df51d3',
    950: '#000000',
  },
}
SCSS
$custom: #df51d3;
$custom-light: #ec8be1;
$custom-dark: #000000;
JSON
{
  "hex": "#df51d3",
  "rgb": {
    "r": 223,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 305.07,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.67008,
    "c": 0.22697,
    "h": 331.3
  },
  "luminance": 0.26276
}

Semantic roles & 50–950 ramp

primary
#DF51D3
secondary
#AAE1AF
accent
#EC4B3C
background
#FEF9FD
surface
#FDF1FB
border
#D5CBD4
text
#170D15
muted
#857E83

Preview Lab

Preview with #DF51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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