#D940CD#D940CD

#D940CD is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.3% C 0.240 H 331.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#D940CD
RGBrgb(217, 64, 205)
HSLhsl(305, 67%, 55%)
HSVhsv(305, 71%, 85%)
CMYKcmyk(0%, 70.5%, 5.5%, 14.9%)
CIE-LABlab(54.90, 73.64, -41.70)
CIE-LCHlch(54.90, 84.63, 330.47°)
OKLaboklab(64.27% 0.2103 -0.1148)
OKLCHoklch(64.27% 0.24 331.4)
XYZxyz(41.4681, 22.8296, 59.9683)
Luminance0.2283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940CD #40D94C
analogous
#9940D9 #D940CD #D94080
triadic
#D940CD #CDD940 #40CDD9
tetradic
#D940CD #D99940 #40D94C #4080D9
square
#D940CD #D99940 #40D94C #4080D9
split-complementary
#D940CD #80D940 #40D999
monochromatic
#841A7C #B724AC #D940CD #E373DA #EDA6E8

Accessibility & contrast

On white

3.77
#D940CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#D940CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940CD
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940CD#FFFFFF#000000##000000
##D940CD1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3476D1
Deuteranopia (green-blind)
#6F8BC9
Tritanopia (blue-blind)
#E25282
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d940cd;
/* rgb */ color: rgb(217, 64, 205);
/* oklch */ color: oklch(64.3% 0.240 331.4);
Tailwind
colors: {
  custom: {
    50: '#e982dd',
    500: '#d940cd',
    950: '#000000',
  },
}
SCSS
$custom: #d940cd;
$custom-light: #e982dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d940cd",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 304.706,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64272,
    "c": 0.23958,
    "h": 331.4
  },
  "luminance": 0.22826
}

Semantic roles & 50–950 ramp

primary
#D940CD
secondary
#9ADA9F
accent
#EA4C3E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940CD

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

Preview Lab → · Contrast checker → · Palette generator →

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