#D040D9#D040D9

#D040D9 is a light, highly saturated purple. Relative luminance 0.221; OKLCH L 63.6% C 0.244 H 325.4°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#D040D9
RGBrgb(208, 64, 217)
HSLhsl(296, 67%, 55%)
HSVhsv(296, 71%, 85%)
CMYKcmyk(4.1%, 70.5%, 0%, 14.9%)
CIE-LABlab(54.12, 73.60, -49.86)
CIE-LCHlch(54.12, 88.90, 325.88°)
OKLaboklab(63.65% 0.2011 -0.1386)
OKLCHoklch(63.65% 0.244 325.4)
XYZxyz(40.3693, 22.0891, 67.7695)
Luminance0.2209 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040D9 #49D940
analogous
#8440D9 #D040D9 #D94095
triadic
#D040D9 #D9D040 #40D9D0
tetradic
#D040D9 #D98440 #49D940 #4095D9
square
#D040D9 #D98440 #49D940 #4095D9
split-complementary
#D040D9 #95D940 #40D984
monochromatic
#7E1A84 #AF24B7 #D040D9 #DD73E3 #E9A6ED

Accessibility & contrast

On white

3.88
#D040D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#D040D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040D9
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040D9#FFFFFF#000000##000000
##D040D91.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1676DD
Deuteranopia (green-blind)
#6087D5
Tritanopia (blue-blind)
#D55989
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d040d9;
/* rgb */ color: rgb(208, 64, 217);
/* oklch */ color: oklch(63.6% 0.244 325.4);
Tailwind
colors: {
  custom: {
    50: '#e282e5',
    500: '#d040d9',
    950: '#000000',
  },
}
SCSS
$custom: #d040d9;
$custom-light: #e282e5;
$custom-dark: #000000;
JSON
{
  "hex": "#d040d9",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 296.471,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63647,
    "c": 0.24428,
    "h": 325.4
  },
  "luminance": 0.22086
}

Semantic roles & 50–950 ramp

primary
#D040D9
secondary
#9EDA9A
accent
#EA3E48
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D040D9

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

Preview Lab → · Contrast checker → · Palette generator →

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