#D942C2#D942C2

#D942C2 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 63.9% C 0.230 H 334.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#D942C2
RGBrgb(217, 66, 194)
HSLhsl(309, 67%, 55%)
HSVhsv(309, 70%, 85%)
CMYKcmyk(0%, 69.6%, 10.6%, 14.9%)
CIE-LABlab(54.60, 71.31, -35.85)
CIE-LCHlch(54.60, 79.82, 333.31°)
OKLaboklab(63.89% 0.2076 -0.0979)
OKLCHoklch(63.89% 0.23 334.7)
XYZxyz(40.3015, 22.5466, 53.2578)
Luminance0.2254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942C2 #42D959
analogous
#A442D9 #D942C2 #D94276
triadic
#D942C2 #C2D942 #42C2D9
tetradic
#D942C2 #D9A442 #42D959 #4276D9
square
#D942C2 #D9A442 #42D959 #4276D9
split-complementary
#D942C2 #76D942 #42D9A4
monochromatic
#861B75 #B925A2 #D942C2 #E375D2 #EDA8E3

Accessibility & contrast

On white

3.81
#D942C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#D942C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942C2
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942C2#FFFFFF#000000##000000
##D942C21.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4174C6
Deuteranopia (green-blind)
#758BBE
Tritanopia (blue-blind)
#E34E7D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d942c2;
/* rgb */ color: rgb(217, 66, 194);
/* oklch */ color: oklch(63.9% 0.230 334.7);
Tailwind
colors: {
  custom: {
    50: '#e983d5',
    500: '#d942c2',
    950: '#000000',
  },
}
SCSS
$custom: #d942c2;
$custom-light: #e983d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d942c2",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 309.139,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.63887,
    "c": 0.22951,
    "h": 334.7
  },
  "luminance": 0.22543
}

Semantic roles & 50–950 ramp

primary
#D942C2
secondary
#9CDBA6
accent
#E9583E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D942C2

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

Preview Lab → · Contrast checker → · Palette generator →

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