#D940D1#D940D1

#D940D1 is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.5% C 0.242 H 330.2°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#D940D1
RGBrgb(217, 64, 209)
HSLhsl(303, 67%, 55%)
HSVhsv(303, 71%, 85%)
CMYKcmyk(0%, 70.5%, 3.7%, 14.9%)
CIE-LABlab(55.10, 74.25, -43.67)
CIE-LCHlch(55.10, 86.14, 329.54°)
OKLaboklab(64.48% 0.2105 -0.1204)
OKLCHoklch(64.48% 0.243 330.2)
XYZxyz(41.9571, 23.0252, 62.5437)
Luminance0.2302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940D1 #40D948
analogous
#9440D9 #D940D1 #D94085
triadic
#D940D1 #D1D940 #40D1D9
tetradic
#D940D1 #D99440 #40D948 #4085D9
square
#D940D1 #D99440 #40D948 #4085D9
split-complementary
#D940D1 #85D940 #40D994
monochromatic
#841A7F #B724B0 #D940D1 #E373DD #EDA6EA

Accessibility & contrast

On white

3.75
#D940D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#D940D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940D1
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940D1#FFFFFF#000000##000000
##D940D11.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3077D5
Deuteranopia (green-blind)
#6D8BCD
Tritanopia (blue-blind)
#E15384
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d940d1;
/* rgb */ color: rgb(217, 64, 209);
/* oklch */ color: oklch(64.5% 0.242 330.2);
Tailwind
colors: {
  custom: {
    50: '#e983df',
    500: '#d940d1',
    950: '#000000',
  },
}
SCSS
$custom: #d940d1;
$custom-light: #e983df;
$custom-dark: #000000;
JSON
{
  "hex": "#d940d1",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 303.137,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64483,
    "c": 0.2425,
    "h": 330.2
  },
  "luminance": 0.23022
}

Semantic roles & 50–950 ramp

primary
#D940D1
secondary
#9ADA9E
accent
#EA473E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940D1

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

Preview Lab → · Contrast checker → · Palette generator →

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