#D942DD#D942DD

#D942DD is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 65.3% C 0.249 H 326.9°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#D942DD
RGBrgb(217, 66, 221)
HSLhsl(298, 70%, 56%)
HSVhsv(298, 70%, 87%)
CMYKcmyk(1.8%, 70.1%, 0%, 13.3%)
CIE-LABlab(55.96, 75.49, -49.12)
CIE-LCHlch(55.96, 90.06, 326.95°)
OKLaboklab(65.3% 0.2088 -0.1363)
OKLCHoklch(65.3% 0.249 326.9)
XYZxyz(43.6139, 23.8716, 70.7031)
Luminance0.2387 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D942DD #46DD42
analogous
#8C42DD #D942DD #DD4294
triadic
#D942DD #DDD942 #42DDD9
tetradic
#D942DD #DD8C42 #46DD42 #4294DD
square
#D942DD #DD8C42 #46DD42 #4294DD
split-complementary
#D942DD #94DD42 #42DD8C
monochromatic
#89198C #BB22BF #D942DD #E376E6 #EEAAF0

Accessibility & contrast

On white

3.64
#D942DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#D942DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D942DD
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D942DD#FFFFFF#000000##000000
##D942DD1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#217AE1
Deuteranopia (green-blind)
#678DD9
Tritanopia (blue-blind)
#DF5A8C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #d942dd;
/* rgb */ color: rgb(217, 66, 221);
/* oklch */ color: oklch(65.3% 0.249 326.9);
Tailwind
colors: {
  custom: {
    50: '#e984e8',
    500: '#d942dd',
    950: '#000000',
  },
}
SCSS
$custom: #d942dd;
$custom-light: #e984e8;
$custom-dark: #000000;
JSON
{
  "hex": "#d942dd",
  "rgb": {
    "r": 217,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 298.452,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.65303,
    "c": 0.24931,
    "h": 326.9
  },
  "luminance": 0.23869
}

Semantic roles & 50–950 ramp

primary
#D942DD
secondary
#9FDD9D
accent
#EC3B40
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #D942DD

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

Preview Lab → · Contrast checker → · Palette generator →

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