#D940D2#D940D2

#D940D2 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.5% C 0.243 H 329.9°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#D940D2
RGBrgb(217, 64, 210)
HSLhsl(303, 67%, 55%)
HSVhsv(303, 71%, 85%)
CMYKcmyk(0%, 70.5%, 3.2%, 14.9%)
CIE-LABlab(55.15, 74.41, -44.16)
CIE-LCHlch(55.15, 86.52, 329.31°)
OKLaboklab(64.54% 0.2105 -0.1219)
OKLCHoklch(64.54% 0.243 329.9)
XYZxyz(42.0813, 23.0749, 63.1978)
Luminance0.2307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940D2 #40D947
analogous
#9340D9 #D940D2 #D94086
triadic
#D940D2 #D2D940 #40D2D9
tetradic
#D940D2 #D99340 #40D947 #4086D9
square
#D940D2 #D99340 #40D947 #4086D9
split-complementary
#D940D2 #86D940 #40D993
monochromatic
#841A7F #B724B1 #D940D2 #E373DE #EDA6EA

Accessibility & contrast

On white

3.74
#D940D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#D940D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940D2
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940D2#FFFFFF#000000##000000
##D940D21.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E77D6
Deuteranopia (green-blind)
#6D8BCE
Tritanopia (blue-blind)
#E15485
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d940d2;
/* rgb */ color: rgb(217, 64, 210);
/* oklch */ color: oklch(64.5% 0.243 329.9);
Tailwind
colors: {
  custom: {
    50: '#e983e0',
    500: '#d940d2',
    950: '#000000',
  },
}
SCSS
$custom: #d940d2;
$custom-light: #e983e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d940d2",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 302.745,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64536,
    "c": 0.24323,
    "h": 329.9
  },
  "luminance": 0.23072
}

Semantic roles & 50–950 ramp

primary
#D940D2
secondary
#9ADA9D
accent
#EA463E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940D2

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

Preview Lab → · Contrast checker → · Palette generator →

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