#DF40D9#DF40D9

#DF40D9 is a light, highly saturated purple. Relative luminance 0.244; OKLCH L 65.8% C 0.251 H 329.6°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#DF40D9
RGBrgb(223, 64, 217)
HSLhsl(302, 71%, 56%)
HSVhsv(302, 71%, 87%)
CMYKcmyk(0%, 71.3%, 2.7%, 12.5%)
CIE-LABlab(56.45, 76.78, -46.01)
CIE-LCHlch(56.45, 89.52, 329.07°)
OKLaboklab(65.77% 0.2168 -0.1271)
OKLCHoklch(65.77% 0.251 329.6)
XYZxyz(44.7889, 24.3679, 67.9767)
Luminance0.2437 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40D9 #40DF46
analogous
#9640DF #DF40D9 #DF408A
triadic
#DF40D9 #D9DF40 #40D9DF
tetradic
#DF40D9 #DF9640 #40DF46 #408ADF
square
#DF40D9 #DF9640 #40DF46 #408ADF
split-complementary
#DF40D9 #8ADF40 #40DF96
monochromatic
#8D1889 #C120BB #DF40D9 #E874E3 #F1A9EE

Accessibility & contrast

On white

3.58
#DF40D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#DF40D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40D9
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40D9#FFFFFF#000000##000000
##DF40D91.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7ADD
Deuteranopia (green-blind)
#6E8FD5
Tritanopia (blue-blind)
#E75689
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #df40d9;
/* rgb */ color: rgb(223, 64, 217);
/* oklch */ color: oklch(65.8% 0.251 329.6);
Tailwind
colors: {
  custom: {
    50: '#ed84e5',
    500: '#df40d9',
    950: '#000000',
  },
}
SCSS
$custom: #df40d9;
$custom-light: #ed84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#df40d9",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 302.264,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65772,
    "c": 0.25128,
    "h": 329.6
  },
  "luminance": 0.24365
}

Semantic roles & 50–950 ramp

primary
#DF40D9
secondary
#9DDE9F
accent
#EE413A
background
#FFF8FE
surface
#FEF0FC
border
#D6CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #DF40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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