#D942D5#D942D5

#D942D5 is a light, highly saturated purple. Relative luminance 0.235; OKLCH L 64.9% C 0.243 H 329.1°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#D942D5
RGBrgb(217, 66, 213)
HSLhsl(302, 67%, 55%)
HSVhsv(302, 70%, 85%)
CMYKcmyk(0%, 69.6%, 1.8%, 14.9%)
CIE-LABlab(55.54, 74.21, -45.25)
CIE-LCHlch(55.54, 86.92, 328.63°)
OKLaboklab(64.87% 0.2087 -0.125)
OKLCHoklch(64.87% 0.243 329.1)
XYZxyz(42.5734, 23.4554, 65.2229)
Luminance0.2345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942D5 #42D946
analogous
#9142D9 #D942D5 #D9428A
triadic
#D942D5 #D5D942 #42D5D9
tetradic
#D942D5 #D99142 #42D946 #428AD9
square
#D942D5 #D99142 #42D946 #428AD9
split-complementary
#D942D5 #8AD942 #42D991
monochromatic
#861B83 #B925B5 #D942D5 #E375E0 #EDA8EC

Accessibility & contrast

On white

3.69
#D942D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#D942D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942D5
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942D5#FFFFFF#000000##000000
##D942D51.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D78D9
Deuteranopia (green-blind)
#6C8CD1
Tritanopia (blue-blind)
#E05787
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d942d5;
/* rgb */ color: rgb(217, 66, 213);
/* oklch */ color: oklch(64.9% 0.243 329.1);
Tailwind
colors: {
  custom: {
    50: '#e984e2',
    500: '#d942d5',
    950: '#000000',
  },
}
SCSS
$custom: #d942d5;
$custom-light: #e984e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d942d5",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 301.589,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.64866,
    "c": 0.24327,
    "h": 329.1
  },
  "luminance": 0.23452
}

Semantic roles & 50–950 ramp

primary
#D942D5
secondary
#9CDB9E
accent
#E9433E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D942D5

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

Preview Lab → · Contrast checker → · Palette generator →

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