#D942C7#D942C7

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

Color values

HEX#D942C7
RGBrgb(217, 66, 199)
HSLhsl(307, 67%, 55%)
HSVhsv(307, 70%, 85%)
CMYKcmyk(0%, 69.6%, 8.3%, 14.9%)
CIE-LABlab(54.84, 72.06, -38.36)
CIE-LCHlch(54.84, 81.63, 331.97°)
OKLaboklab(64.14% 0.208 -0.1051)
OKLCHoklch(64.14% 0.233 333.2)
XYZxyz(40.8725, 22.7750, 56.2651)
Luminance0.2277 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942C7 #42D954
analogous
#9F42D9 #D942C7 #D9427C
triadic
#D942C7 #C7D942 #42C7D9
tetradic
#D942C7 #D99F42 #42D954 #427CD9
square
#D942C7 #D99F42 #42D954 #427CD9
split-complementary
#D942C7 #7CD942 #42D99F
monochromatic
#861B79 #B925A7 #D942C7 #E375D6 #EDA8E5

Accessibility & contrast

On white

3.78
#D942C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D942C7#FFFFFF#000000##000000
##D942C71.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D75CB
Deuteranopia (green-blind)
#738BC3
Tritanopia (blue-blind)
#E35080
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d942c7;
/* rgb */ color: rgb(217, 66, 199);
/* oklch */ color: oklch(64.1% 0.233 333.2);
Tailwind
colors: {
  custom: {
    50: '#e983d8',
    500: '#d942c7',
    950: '#000000',
  },
}
SCSS
$custom: #d942c7;
$custom-light: #e983d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d942c7",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 307.152,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64136,
    "c": 0.23304,
    "h": 333.2
  },
  "luminance": 0.22772
}

Semantic roles & 50–950 ramp

primary
#D942C7
secondary
#9CDBA3
accent
#E9533E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D942C7

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

Preview Lab → · Contrast checker → · Palette generator →

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