#D040D8#D040D8

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

Color values

HEX#D040D8
RGBrgb(208, 64, 216)
HSLhsl(297, 66%, 55%)
HSVhsv(297, 70%, 85%)
CMYKcmyk(3.7%, 70.4%, 0%, 15.3%)
CIE-LABlab(54.07, 73.43, -49.38)
CIE-LCHlch(54.07, 88.49, 326.08°)
OKLaboklab(63.59% 0.2012 -0.1372)
OKLCHoklch(63.59% 0.244 325.7)
XYZxyz(40.2396, 22.0372, 67.0866)
Luminance0.2203 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D040D8 #48D840
analogous
#8440D8 #D040D8 #D84094
triadic
#D040D8 #D8D040 #40D8D0
tetradic
#D040D8 #D88440 #48D840 #4094D8
square
#D040D8 #D88440 #48D840 #4094D8
split-complementary
#D040D8 #94D840 #40D884
monochromatic
#7D1B83 #AE25B6 #D040D8 #DD73E2 #E9A6ED

Accessibility & contrast

On white

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

On black

5.41
#D040D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D040D8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D040D8#FFFFFF#000000##000000
##D040D81.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1876DC
Deuteranopia (green-blind)
#6187D4
Tritanopia (blue-blind)
#D55988
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d040d8;
/* rgb */ color: rgb(208, 64, 216);
/* oklch */ color: oklch(63.6% 0.244 325.7);
Tailwind
colors: {
  custom: {
    50: '#e282e5',
    500: '#d040d8',
    950: '#000000',
  },
}
SCSS
$custom: #d040d8;
$custom-light: #e282e5;
$custom-dark: #000000;
JSON
{
  "hex": "#d040d8",
  "rgb": {
    "r": 208,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 296.842,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.6359,
    "c": 0.24351,
    "h": 325.7
  },
  "luminance": 0.22035
}

Semantic roles & 50–950 ramp

primary
#D040D8
secondary
#9DDA9A
accent
#E93F48
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D040D8

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

Preview Lab → · Contrast checker → · Palette generator →

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