#DF40D4#DF40D4

#DF40D4 is a light, highly saturated purple. Relative luminance 0.241; OKLCH L 65.5% C 0.248 H 331.0°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#DF40D4
RGBrgb(223, 64, 212)
HSLhsl(304, 71%, 56%)
HSVhsv(304, 71%, 87%)
CMYKcmyk(0%, 71.3%, 4.9%, 12.5%)
CIE-LABlab(56.20, 76.02, -43.58)
CIE-LCHlch(56.20, 87.62, 330.18°)
OKLaboklab(65.51% 0.2166 -0.12)
OKLCHoklch(65.51% 0.248 331)
XYZxyz(44.1484, 24.1117, 64.6034)
Luminance0.2411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40D4 #40DF4B
analogous
#9B40DF #DF40D4 #DF4085
triadic
#DF40D4 #D4DF40 #40D4DF
tetradic
#DF40D4 #DF9B40 #40DF4B #4085DF
square
#DF40D4 #DF9B40 #40DF4B #4085DF
split-complementary
#DF40D4 #85DF40 #40DF9B
monochromatic
#8D1885 #C120B6 #DF40D4 #E874E0 #F1A9EC

Accessibility & contrast

On white

3.61
#DF40D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#DF40D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40D4
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40D4#FFFFFF#000000##000000
##DF40D41.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3279D8
Deuteranopia (green-blind)
#718ED0
Tritanopia (blue-blind)
#E85386
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #df40d4;
/* rgb */ color: rgb(223, 64, 212);
/* oklch */ color: oklch(65.5% 0.248 331.0);
Tailwind
colors: {
  custom: {
    50: '#ed83e2',
    500: '#df40d4',
    950: '#000000',
  },
}
SCSS
$custom: #df40d4;
$custom-light: #ed83e2;
$custom-dark: #000000;
JSON
{
  "hex": "#df40d4",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 304.151,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65506,
    "c": 0.24767,
    "h": 331
  },
  "luminance": 0.24108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DF40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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