#DF40D3#DF40D3

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

Color values

HEX#DF40D3
RGBrgb(223, 64, 211)
HSLhsl(305, 71%, 56%)
HSVhsv(305, 71%, 87%)
CMYKcmyk(0%, 71.3%, 5.4%, 12.5%)
CIE-LABlab(56.15, 75.87, -43.09)
CIE-LCHlch(56.15, 87.25, 330.41°)
OKLaboklab(65.45% 0.2166 -0.1186)
OKLCHoklch(65.45% 0.247 331.3)
XYZxyz(44.0227, 24.0614, 63.9411)
Luminance0.2406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF40D3 #40DF4C
analogous
#9C40DF #DF40D3 #DF4084
triadic
#DF40D3 #D3DF40 #40D3DF
tetradic
#DF40D3 #DF9C40 #40DF4C #4084DF
square
#DF40D3 #DF9C40 #40DF4C #4084DF
split-complementary
#DF40D3 #84DF40 #40DF9C
monochromatic
#8D1884 #C120B5 #DF40D3 #E874DF #F1A9EB

Accessibility & contrast

On white

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

On black

5.81
#DF40D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #DF40D3
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF40D3#FFFFFF#000000##000000
##DF40D31.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3378D7
Deuteranopia (green-blind)
#718ECF
Tritanopia (blue-blind)
#E85386
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #df40d3;
/* rgb */ color: rgb(223, 64, 211);
/* oklch */ color: oklch(65.5% 0.247 331.3);
Tailwind
colors: {
  custom: {
    50: '#ed83e1',
    500: '#df40d3',
    950: '#000000',
  },
}
SCSS
$custom: #df40d3;
$custom-light: #ed83e1;
$custom-dark: #000000;
JSON
{
  "hex": "#df40d3",
  "rgb": {
    "r": 223,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 304.528,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65454,
    "c": 0.24695,
    "h": 331.3
  },
  "luminance": 0.24058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #DF40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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