#D940CC#D940CC

#D940CC is a light, highly saturated purple. Relative luminance 0.228; OKLCH L 64.2% C 0.239 H 331.7°. Best body text is #000000 at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#D940CC
RGBrgb(217, 64, 204)
HSLhsl(305, 67%, 55%)
HSVhsv(305, 71%, 85%)
CMYKcmyk(0%, 70.5%, 6%, 14.9%)
CIE-LABlab(54.85, 73.48, -41.21)
CIE-LCHlch(54.85, 84.25, 330.72°)
OKLaboklab(64.22% 0.2103 -0.1133)
OKLCHoklch(64.22% 0.239 331.7)
XYZxyz(41.3478, 22.7814, 59.3346)
Luminance0.2278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940CC #40D94D
analogous
#9940D9 #D940CC #D94080
triadic
#D940CC #CCD940 #40CCD9
tetradic
#D940CC #D99940 #40D94D #4080D9
square
#D940CC #D99940 #40D94D #4080D9
split-complementary
#D940CC #80D940 #40D999
monochromatic
#841A7B #B724AB #D940CC #E373DA #EDA6E7

Accessibility & contrast

On white

3.78
#D940CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.56
#D940CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940CC
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940CC#FFFFFF#000000##000000
##D940CC1.003.785.565.56
#FFFFFF3.781.0021.0021.00
#0000005.5621.001.001.00
##0000005.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3576D0
Deuteranopia (green-blind)
#708BC8
Tritanopia (blue-blind)
#E25182
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d940cc;
/* rgb */ color: rgb(217, 64, 204);
/* oklch */ color: oklch(64.2% 0.239 331.7);
Tailwind
colors: {
  custom: {
    50: '#e982dc',
    500: '#d940cc',
    950: '#000000',
  },
}
SCSS
$custom: #d940cc;
$custom-light: #e982dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d940cc",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 305.098,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6422,
    "c": 0.23886,
    "h": 331.7
  },
  "luminance": 0.22778
}

Semantic roles & 50–950 ramp

primary
#D940CC
secondary
#9ADAA0
accent
#EA4D3E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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