#D942CD#D942CD

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

Color values

HEX#D942CD
RGBrgb(217, 66, 205)
HSLhsl(305, 67%, 55%)
HSVhsv(305, 70%, 85%)
CMYKcmyk(0%, 69.6%, 5.5%, 14.9%)
CIE-LABlab(55.13, 72.96, -41.33)
CIE-LCHlch(55.13, 83.86, 330.47°)
OKLaboklab(64.44% 0.2084 -0.1137)
OKLCHoklch(64.44% 0.237 331.4)
XYZxyz(41.5829, 23.0592, 60.0065)
Luminance0.2306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942CD #42D94E
analogous
#9942D9 #D942CD #D94281
triadic
#D942CD #CDD942 #42CDD9
tetradic
#D942CD #D99942 #42D94E #4281D9
square
#D942CD #D99942 #42D94E #4281D9
split-complementary
#D942CD #81D942 #42D999
monochromatic
#861B7D #B925AD #D942CD #E375DA #EDA8E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D942CD#FFFFFF#000000##000000
##D942CD1.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)
#3777D1
Deuteranopia (green-blind)
#708BC9
Tritanopia (blue-blind)
#E25383
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d942cd;
/* rgb */ color: rgb(217, 66, 205);
/* oklch */ color: oklch(64.4% 0.237 331.4);
Tailwind
colors: {
  custom: {
    50: '#e983dd',
    500: '#d942cd',
    950: '#000000',
  },
}
SCSS
$custom: #d942cd;
$custom-light: #e983dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d942cd",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 304.768,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64443,
    "c": 0.23737,
    "h": 331.4
  },
  "luminance": 0.23056
}

Semantic roles & 50–950 ramp

primary
#D942CD
secondary
#9CDBA1
accent
#E94C3E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D942CD

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

Preview Lab → · Contrast checker → · Palette generator →

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