#DF40D2#DF40D2

#DF40D2 is a light, highly saturated purple. Relative luminance 0.240; OKLCH L 65.4% C 0.246 H 331.6°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#DF40D2
RGBrgb(223, 64, 210)
HSLhsl(305, 71%, 56%)
HSVhsv(305, 71%, 87%)
CMYKcmyk(0%, 71.3%, 5.8%, 12.5%)
CIE-LABlab(56.10, 75.72, -42.60)
CIE-LCHlch(56.10, 86.88, 330.64°)
OKLaboklab(65.4% 0.2166 -0.1172)
OKLCHoklch(65.4% 0.246 331.6)
XYZxyz(43.8977, 24.0114, 63.2829)
Luminance0.2401 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40D2 #40DF4D
analogous
#9D40DF #DF40D2 #DF4083
triadic
#DF40D2 #D2DF40 #40D2DF
tetradic
#DF40D2 #DF9D40 #40DF4D #4083DF
square
#DF40D2 #DF9D40 #40DF4D #4083DF
split-complementary
#DF40D2 #83DF40 #40DF9D
monochromatic
#8D1883 #C120B4 #DF40D2 #E874DE #F1A9EB

Accessibility & contrast

On white

3.62
#DF40D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#DF40D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40D2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40D2#FFFFFF#000000##000000
##DF40D21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3478D6
Deuteranopia (green-blind)
#728ECE
Tritanopia (blue-blind)
#E85285
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #df40d2;
/* rgb */ color: rgb(223, 64, 210);
/* oklch */ color: oklch(65.4% 0.246 331.6);
Tailwind
colors: {
  custom: {
    50: '#ed83e0',
    500: '#df40d2',
    950: '#000000',
  },
}
SCSS
$custom: #df40d2;
$custom-light: #ed83e0;
$custom-dark: #000000;
JSON
{
  "hex": "#df40d2",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 304.906,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65402,
    "c": 0.24624,
    "h": 331.6
  },
  "luminance": 0.24008
}

Semantic roles & 50–950 ramp

primary
#DF40D2
secondary
#9DDEA2
accent
#EE483A
background
#FFF8FD
surface
#FEF0FB
border
#D6CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #DF40D2

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

Preview Lab → · Contrast checker → · Palette generator →

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