#DF40D5#DF40D5

#DF40D5 is a light, highly saturated purple. Relative luminance 0.242; OKLCH L 65.6% C 0.248 H 330.7°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#DF40D5
RGBrgb(223, 64, 213)
HSLhsl(304, 71%, 56%)
HSVhsv(304, 71%, 87%)
CMYKcmyk(0%, 71.3%, 4.5%, 12.5%)
CIE-LABlab(56.25, 76.17, -44.07)
CIE-LCHlch(56.25, 88.00, 329.95°)
OKLaboklab(65.56% 0.2167 -0.1214)
OKLCHoklch(65.56% 0.248 330.7)
XYZxyz(44.2749, 24.1623, 65.2698)
Luminance0.2416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40D5 #40DF4A
analogous
#9A40DF #DF40D5 #DF4086
triadic
#DF40D5 #D5DF40 #40D5DF
tetradic
#DF40D5 #DF9A40 #40DF4A #4086DF
square
#DF40D5 #DF9A40 #40DF4A #4086DF
split-complementary
#DF40D5 #86DF40 #40DF9A
monochromatic
#8D1886 #C120B7 #DF40D5 #E874E1 #F1A9EC

Accessibility & contrast

On white

3.60
#DF40D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#DF40D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40D5
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40D5#FFFFFF#000000##000000
##DF40D51.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3079D9
Deuteranopia (green-blind)
#708FD1
Tritanopia (blue-blind)
#E85487
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #df40d5;
/* rgb */ color: rgb(223, 64, 213);
/* oklch */ color: oklch(65.6% 0.248 330.7);
Tailwind
colors: {
  custom: {
    50: '#ed83e2',
    500: '#df40d5',
    950: '#000000',
  },
}
SCSS
$custom: #df40d5;
$custom-light: #ed83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#df40d5",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 303.774,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65559,
    "c": 0.24838,
    "h": 330.7
  },
  "luminance": 0.24159
}

Semantic roles & 50–950 ramp

primary
#DF40D5
secondary
#9DDEA1
accent
#EE453A
background
#FFF8FD
surface
#FEF0FB
border
#D6CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #DF40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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