#D942C6#D942C6

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

Color values

HEX#D942C6
RGBrgb(217, 66, 198)
HSLhsl(308, 67%, 55%)
HSVhsv(308, 70%, 85%)
CMYKcmyk(0%, 69.6%, 8.8%, 14.9%)
CIE-LABlab(54.79, 71.91, -37.86)
CIE-LCHlch(54.79, 81.26, 332.23°)
OKLaboklab(64.09% 0.2079 -0.1037)
OKLCHoklch(64.09% 0.232 333.5)
XYZxyz(40.7568, 22.7287, 55.6557)
Luminance0.2273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942C6 #42D955
analogous
#A142D9 #D942C6 #D9427A
triadic
#D942C6 #C6D942 #42C6D9
tetradic
#D942C6 #D9A142 #42D955 #427AD9
square
#D942C6 #D9A142 #42D955 #427AD9
split-complementary
#D942C6 #7AD942 #42D9A1
monochromatic
#861B78 #B925A6 #D942C6 #E375D5 #EDA8E5

Accessibility & contrast

On white

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

On black

5.55
#D942C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942C6
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942C6#FFFFFF#000000##000000
##D942C61.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D75CA
Deuteranopia (green-blind)
#738BC2
Tritanopia (blue-blind)
#E3507F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d942c6;
/* rgb */ color: rgb(217, 66, 198);
/* oklch */ color: oklch(64.1% 0.232 333.5);
Tailwind
colors: {
  custom: {
    50: '#e983d7',
    500: '#d942c6',
    950: '#000000',
  },
}
SCSS
$custom: #d942c6;
$custom-light: #e983d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d942c6",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 307.55,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64086,
    "c": 0.23233,
    "h": 333.5
  },
  "luminance": 0.22725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D942C6

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

Preview Lab → · Contrast checker → · Palette generator →

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