#D942C4#D942C4

#D942C4 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.0% C 0.231 H 334.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#D942C4
RGBrgb(217, 66, 196)
HSLhsl(308, 67%, 55%)
HSVhsv(308, 70%, 85%)
CMYKcmyk(0%, 69.6%, 9.7%, 14.9%)
CIE-LABlab(54.70, 71.61, -36.86)
CIE-LCHlch(54.70, 80.54, 332.77°)
OKLaboklab(63.99% 0.2077 -0.1008)
OKLCHoklch(63.99% 0.231 334.1)
XYZxyz(40.5276, 22.6371, 54.4488)
Luminance0.2263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942C4 #42D957
analogous
#A242D9 #D942C4 #D94279
triadic
#D942C4 #C4D942 #42C4D9
tetradic
#D942C4 #D9A242 #42D957 #4279D9
square
#D942C4 #D9A242 #42D957 #4279D9
split-complementary
#D942C4 #79D942 #42D9A2
monochromatic
#861B77 #B925A4 #D942C4 #E375D4 #EDA8E4

Accessibility & contrast

On white

3.80
#D942C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#D942C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942C4
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942C4#FFFFFF#000000##000000
##D942C41.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F75C8
Deuteranopia (green-blind)
#748BC0
Tritanopia (blue-blind)
#E34F7E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d942c4;
/* rgb */ color: rgb(217, 66, 196);
/* oklch */ color: oklch(64.0% 0.231 334.1);
Tailwind
colors: {
  custom: {
    50: '#e983d6',
    500: '#d942c4',
    950: '#000000',
  },
}
SCSS
$custom: #d942c4;
$custom-light: #e983d6;
$custom-dark: #000000;
JSON
{
  "hex": "#d942c4",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 308.344,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.63986,
    "c": 0.23091,
    "h": 334.1
  },
  "luminance": 0.22634
}

Semantic roles & 50–950 ramp

primary
#D942C4
secondary
#9CDBA5
accent
#E9563E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D942C4

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

Preview Lab → · Contrast checker → · Palette generator →

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