#D040D5#D040D5

#D040D5 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.4% C 0.241 H 326.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#D040D5
RGBrgb(208, 64, 213)
HSLhsl(298, 64%, 54%)
HSVhsv(298, 70%, 84%)
CMYKcmyk(2.3%, 70%, 0%, 16.5%)
CIE-LABlab(53.90, 72.94, -47.93)
CIE-LCHlch(53.90, 87.28, 326.69°)
OKLaboklab(63.42% 0.2012 -0.133)
OKLCHoklch(63.42% 0.241 326.5)
XYZxyz(39.8553, 21.8835, 65.0626)
Luminance0.2188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040D5 #45D540
analogous
#8640D5 #D040D5 #D5408F
triadic
#D040D5 #D5D040 #40D5D0
tetradic
#D040D5 #D58640 #45D540 #408FD5
square
#D040D5 #D58640 #45D540 #408FD5
split-complementary
#D040D5 #8FD540 #40D586
monochromatic
#7B1C7F #AC27B1 #D040D5 #DC72E0 #E9A4EB

Accessibility & contrast

On white

3.91
#D040D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#D040D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040D5
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040D5#FFFFFF#000000##000000
##D040D51.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F75D9
Deuteranopia (green-blind)
#6387D1
Tritanopia (blue-blind)
#D65887
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d040d5;
/* rgb */ color: rgb(208, 64, 213);
/* oklch */ color: oklch(63.4% 0.241 326.5);
Tailwind
colors: {
  custom: {
    50: '#e282e2',
    500: '#d040d5',
    950: '#000000',
  },
}
SCSS
$custom: #d040d5;
$custom-light: #e282e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d040d5",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 297.987,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.6342,
    "c": 0.24118,
    "h": 326.5
  },
  "luminance": 0.21881
}

Semantic roles & 50–950 ramp

primary
#D040D5
secondary
#9BD899
accent
#E74146
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D040D5

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

Preview Lab → · Contrast checker → · Palette generator →

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