#DF51D2#DF51D2

#DF51D2 is a light, highly saturated purple. Relative luminance 0.262; OKLCH L 67.0% C 0.226 H 331.6°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#DF51D2
RGBrgb(223, 81, 210)
HSLhsl(305, 69%, 60%)
HSVhsv(305, 64%, 87%)
CMYKcmyk(0%, 63.7%, 5.8%, 12.5%)
CIE-LABlab(58.25, 69.66, -39.21)
CIE-LCHlch(58.25, 79.93, 330.63°)
OKLaboklab(66.96% 0.199 -0.1076)
OKLCHoklch(66.96% 0.226 331.6)
XYZxyz(45.0067, 26.2294, 63.6526)
Luminance0.2623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF51D2 #51DF5E
analogous
#A551DF #DF51D2 #DF518B
triadic
#DF51D2 #D2DF51 #51D2DF
tetradic
#DF51D2 #DFA551 #51DF5E #518BDF
square
#DF51D2 #DFA551 #51DF5E #518BDF
split-complementary
#DF51D2 #8BDF51 #51DFA5
monochromatic
#991C8E #CD26BE #DF51D2 #E985DF #F2B8ED

Accessibility & contrast

On white

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

On black

6.25
#DF51D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF51D2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF51D2#FFFFFF#000000##000000
##DF51D21.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#497FD6
Deuteranopia (green-blind)
#7A93CE
Tritanopia (blue-blind)
#E85F8B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #df51d2;
/* rgb */ color: rgb(223, 81, 210);
/* oklch */ color: oklch(67.0% 0.226 331.6);
Tailwind
colors: {
  custom: {
    50: '#ec8be0',
    500: '#df51d2',
    950: '#000000',
  },
}
SCSS
$custom: #df51d2;
$custom-light: #ec8be0;
$custom-dark: #000000;
JSON
{
  "hex": "#df51d2",
  "rgb": {
    "r": 223,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 305.493,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.66959,
    "c": 0.22621,
    "h": 331.6
  },
  "luminance": 0.26226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DF51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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