#D942CA#D942CA

#D942CA is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 64.3% C 0.235 H 332.3°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#D942CA
RGBrgb(217, 66, 202)
HSLhsl(306, 67%, 55%)
HSVhsv(306, 70%, 85%)
CMYKcmyk(0%, 69.6%, 6.9%, 14.9%)
CIE-LABlab(54.99, 72.51, -39.85)
CIE-LCHlch(54.99, 82.73, 331.21°)
OKLaboklab(64.29% 0.2082 -0.1094)
OKLCHoklch(64.29% 0.235 332.3)
XYZxyz(41.2242, 22.9157, 58.1176)
Luminance0.2291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942CA #42D951
analogous
#9C42D9 #D942CA #D9427F
triadic
#D942CA #CAD942 #42CAD9
tetradic
#D942CA #D99C42 #42D951 #427FD9
square
#D942CA #D99C42 #42D951 #427FD9
split-complementary
#D942CA #7FD942 #42D99C
monochromatic
#861B7B #B925AA #D942CA #E375D8 #EDA8E7

Accessibility & contrast

On white

3.76
#D942CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#D942CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942CA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942CA#FFFFFF#000000##000000
##D942CA1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A76CE
Deuteranopia (green-blind)
#728BC6
Tritanopia (blue-blind)
#E25281
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d942ca;
/* rgb */ color: rgb(217, 66, 202);
/* oklch */ color: oklch(64.3% 0.235 332.3);
Tailwind
colors: {
  custom: {
    50: '#e983da',
    500: '#d942ca',
    950: '#000000',
  },
}
SCSS
$custom: #d942ca;
$custom-light: #e983da;
$custom-dark: #000000;
JSON
{
  "hex": "#d942ca",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 305.96,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64289,
    "c": 0.23519,
    "h": 332.3
  },
  "luminance": 0.22912
}

Semantic roles & 50–950 ramp

primary
#D942CA
secondary
#9CDBA2
accent
#E94F3E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D942CA

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

Preview Lab → · Contrast checker → · Palette generator →

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