#D942C5#D942C5

#D942C5 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.0% C 0.232 H 333.8°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#D942C5
RGBrgb(217, 66, 197)
HSLhsl(308, 67%, 55%)
HSVhsv(308, 70%, 85%)
CMYKcmyk(0%, 69.6%, 9.2%, 14.9%)
CIE-LABlab(54.74, 71.76, -37.36)
CIE-LCHlch(54.74, 80.90, 332.50°)
OKLaboklab(64.04% 0.2078 -0.1023)
OKLCHoklch(64.04% 0.232 333.8)
XYZxyz(40.6418, 22.6828, 55.0502)
Luminance0.2268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942C5 #42D956
analogous
#A142D9 #D942C5 #D94279
triadic
#D942C5 #C5D942 #42C5D9
tetradic
#D942C5 #D9A142 #42D956 #4279D9
square
#D942C5 #D9A142 #42D956 #4279D9
split-complementary
#D942C5 #79D942 #42D9A1
monochromatic
#861B78 #B925A5 #D942C5 #E375D5 #EDA8E4

Accessibility & contrast

On white

3.79
#D942C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#D942C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942C5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942C5#FFFFFF#000000##000000
##D942C51.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E75C9
Deuteranopia (green-blind)
#748BC1
Tritanopia (blue-blind)
#E34F7F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d942c5;
/* rgb */ color: rgb(217, 66, 197);
/* oklch */ color: oklch(64.0% 0.232 333.8);
Tailwind
colors: {
  custom: {
    50: '#e983d7',
    500: '#d942c5',
    950: '#000000',
  },
}
SCSS
$custom: #d942c5;
$custom-light: #e983d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d942c5",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 307.947,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64036,
    "c": 0.23163,
    "h": 333.8
  },
  "luminance": 0.22679
}

Semantic roles & 50–950 ramp

primary
#D942C5
secondary
#9CDBA4
accent
#E9553E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D942C5

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

Preview Lab → · Contrast checker → · Palette generator →

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