#D940DD#D940DD

#D940DD is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 65.1% C 0.251 H 326.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#D940DD
RGBrgb(217, 64, 221)
HSLhsl(298, 70%, 56%)
HSVhsv(298, 71%, 87%)
CMYKcmyk(1.8%, 71%, 0%, 13.3%)
CIE-LABlab(55.73, 76.15, -49.49)
CIE-LCHlch(55.73, 90.82, 326.98°)
OKLaboklab(65.14% 0.2106 -0.1373)
OKLCHoklch(65.14% 0.251 326.9)
XYZxyz(43.4991, 23.6420, 70.6648)
Luminance0.2364 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940DD #44DD40
analogous
#8A40DD #D940DD #DD4093
triadic
#D940DD #DDD940 #40DDD9
tetradic
#D940DD #DD8A40 #44DD40 #4093DD
square
#D940DD #DD8A40 #44DD40 #4093DD
split-complementary
#D940DD #93DD40 #40DD8A
monochromatic
#87198A #BA22BE #D940DD #E374E6 #EEA8EF

Accessibility & contrast

On white

3.67
#D940DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#D940DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940DD
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940DD#FFFFFF#000000##000000
##D940DD1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C79E1
Deuteranopia (green-blind)
#668CD9
Tritanopia (blue-blind)
#DF598B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d940dd;
/* rgb */ color: rgb(217, 64, 221);
/* oklch */ color: oklch(65.1% 0.251 326.9);
Tailwind
colors: {
  custom: {
    50: '#e983e8',
    500: '#d940dd',
    950: '#000000',
  },
}
SCSS
$custom: #d940dd;
$custom-light: #e983e8;
$custom-dark: #000000;
JSON
{
  "hex": "#d940dd",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 298.471,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.65138,
    "c": 0.25144,
    "h": 326.9
  },
  "luminance": 0.23639
}

Semantic roles & 50–950 ramp

primary
#D940DD
secondary
#9EDD9C
accent
#ED3B40
background
#FEF8FE
surface
#FDF0FD
border
#D5CBD5
text
#170C16
muted
#857D84

Preview Lab

Preview with #D940DD

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

Preview Lab → · Contrast checker → · Palette generator →

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