#D040D7#D040D7

#D040D7 is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 63.5% C 0.243 H 326.0°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#D040D7
RGBrgb(208, 64, 215)
HSLhsl(297, 65%, 55%)
HSVhsv(297, 70%, 84%)
CMYKcmyk(3.3%, 70.2%, 0%, 15.7%)
CIE-LABlab(54.01, 73.27, -48.90)
CIE-LCHlch(54.01, 88.08, 326.28°)
OKLaboklab(63.53% 0.2012 -0.1358)
OKLCHoklch(63.53% 0.243 326)
XYZxyz(40.1107, 21.9856, 66.4078)
Luminance0.2198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040D7 #47D740
analogous
#8540D7 #D040D7 #D74092
triadic
#D040D7 #D7D040 #40D7D0
tetradic
#D040D7 #D78540 #47D740 #4092D7
square
#D040D7 #D78540 #47D740 #4092D7
split-complementary
#D040D7 #92D740 #40D785
monochromatic
#7D1B81 #AD26B4 #D040D7 #DC73E2 #E9A5EC

Accessibility & contrast

On white

3.89
#D040D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#D040D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040D7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040D7#FFFFFF#000000##000000
##D040D71.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B76DB
Deuteranopia (green-blind)
#6287D3
Tritanopia (blue-blind)
#D55888
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d040d7;
/* rgb */ color: rgb(208, 64, 215);
/* oklch */ color: oklch(63.5% 0.243 326.0);
Tailwind
colors: {
  custom: {
    50: '#e282e4',
    500: '#d040d7',
    950: '#000000',
  },
}
SCSS
$custom: #d040d7;
$custom-light: #e282e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d040d7",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 297.219,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.63533,
    "c": 0.24273,
    "h": 326
  },
  "luminance": 0.21983
}

Semantic roles & 50–950 ramp

primary
#D040D7
secondary
#9DD99A
accent
#E83F47
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C15
muted
#847D84

Preview Lab

Preview with #D040D7

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

Preview Lab → · Contrast checker → · Palette generator →

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