#D940D0#D940D0

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

Color values

HEX#D940D0
RGBrgb(217, 64, 208)
HSLhsl(304, 67%, 55%)
HSVhsv(304, 71%, 85%)
CMYKcmyk(0%, 70.5%, 4.1%, 14.9%)
CIE-LABlab(55.05, 74.10, -43.18)
CIE-LCHlch(55.05, 85.76, 329.77°)
OKLaboklab(64.43% 0.2104 -0.119)
OKLCHoklch(64.43% 0.242 330.5)
XYZxyz(41.8337, 22.9758, 61.8937)
Luminance0.2297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940D0 #40D949
analogous
#9540D9 #D940D0 #D94084
triadic
#D940D0 #D0D940 #40D0D9
tetradic
#D940D0 #D99540 #40D949 #4084D9
square
#D940D0 #D99540 #40D949 #4084D9
split-complementary
#D940D0 #84D940 #40D995
monochromatic
#841A7E #B724AF #D940D0 #E373DD #EDA6E9

Accessibility & contrast

On white

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

On black

5.59
#D940D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940D0
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940D0#FFFFFF#000000##000000
##D940D01.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3176D4
Deuteranopia (green-blind)
#6E8BCC
Tritanopia (blue-blind)
#E15384
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d940d0;
/* rgb */ color: rgb(217, 64, 208);
/* oklch */ color: oklch(64.4% 0.242 330.5);
Tailwind
colors: {
  custom: {
    50: '#e983df',
    500: '#d940d0',
    950: '#000000',
  },
}
SCSS
$custom: #d940d0;
$custom-light: #e983df;
$custom-dark: #000000;
JSON
{
  "hex": "#d940d0",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 303.529,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6443,
    "c": 0.24177,
    "h": 330.5
  },
  "luminance": 0.22973
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D940D0

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

Preview Lab → · Contrast checker → · Palette generator →

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