#DF40D7#DF40D7

#DF40D7 is a light, highly saturated purple. Relative luminance 0.243; OKLCH L 65.7% C 0.250 H 330.2°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#DF40D7
RGBrgb(223, 64, 215)
HSLhsl(303, 71%, 56%)
HSVhsv(303, 71%, 87%)
CMYKcmyk(0%, 71.3%, 3.6%, 12.5%)
CIE-LABlab(56.35, 76.48, -45.04)
CIE-LCHlch(56.35, 88.75, 329.50°)
OKLaboklab(65.66% 0.2167 -0.1243)
OKLCHoklch(65.66% 0.25 330.2)
XYZxyz(44.5304, 24.2645, 66.6150)
Luminance0.2426 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40D7 #40DF48
analogous
#9840DF #DF40D7 #DF4088
triadic
#DF40D7 #D7DF40 #40D7DF
tetradic
#DF40D7 #DF9840 #40DF48 #4088DF
square
#DF40D7 #DF9840 #40DF48 #4088DF
split-complementary
#DF40D7 #88DF40 #40DF98
monochromatic
#8D1887 #C120B9 #DF40D7 #E874E2 #F1A9ED

Accessibility & contrast

On white

3.59
#DF40D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#DF40D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40D7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40D7#FFFFFF#000000##000000
##DF40D71.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E79DB
Deuteranopia (green-blind)
#6F8FD3
Tritanopia (blue-blind)
#E75588
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #df40d7;
/* rgb */ color: rgb(223, 64, 215);
/* oklch */ color: oklch(65.7% 0.250 330.2);
Tailwind
colors: {
  custom: {
    50: '#ed84e4',
    500: '#df40d7',
    950: '#000000',
  },
}
SCSS
$custom: #df40d7;
$custom-light: #ed84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#df40d7",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 303.019,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65665,
    "c": 0.24983,
    "h": 330.2
  },
  "luminance": 0.24261
}

Semantic roles & 50–950 ramp

primary
#DF40D7
secondary
#9DDEA0
accent
#EE433A
background
#FFF8FE
surface
#FEF0FC
border
#D6CBD5
text
#170C15
muted
#857D84

Preview Lab

Preview with #DF40D7

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

Preview Lab → · Contrast checker → · Palette generator →

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