#D040D1#D040D1

#D040D1 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.2% C 0.238 H 327.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#D040D1
RGBrgb(208, 64, 209)
HSLhsl(300, 61%, 54%)
HSVhsv(300, 69%, 82%)
CMYKcmyk(0.5%, 69.4%, 0%, 18%)
CIE-LABlab(53.69, 72.28, -45.99)
CIE-LCHlch(53.69, 85.67, 327.53°)
OKLaboklab(63.2% 0.2012 -0.1274)
OKLCHoklch(63.2% 0.238 327.7)
XYZxyz(39.3539, 21.6829, 62.4217)
Luminance0.2168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040D1 #41D140
analogous
#8740D1 #D040D1 #D14089
triadic
#D040D1 #D1D040 #40D1D0
tetradic
#D040D1 #D18740 #41D140 #4089D1
square
#D040D1 #D18740 #41D140 #4089D1
split-complementary
#D040D1 #89D140 #40D187
monochromatic
#791D79 #AA29AB #D040D1 #DC71DD #E8A3E9

Accessibility & contrast

On white

3.94
#D040D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D040D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040D1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040D1#FFFFFF#000000##000000
##D040D11.003.945.345.34
#FFFFFF3.941.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2674D5
Deuteranopia (green-blind)
#6587CD
Tritanopia (blue-blind)
#D65684
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d040d1;
/* rgb */ color: rgb(208, 64, 209);
/* oklch */ color: oklch(63.2% 0.238 327.7);
Tailwind
colors: {
  custom: {
    50: '#e282df',
    500: '#d040d1',
    950: '#000000',
  },
}
SCSS
$custom: #d040d1;
$custom-light: #e282df;
$custom-dark: #000000;
JSON
{
  "hex": "#d040d1",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 299.586,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.63198,
    "c": 0.2381,
    "h": 327.7
  },
  "luminance": 0.2168
}

Semantic roles & 50–950 ramp

primary
#D040D1
secondary
#98D597
accent
#E44445
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D040D1

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

Preview Lab → · Contrast checker → · Palette generator →

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