#D940D7#D940D7

#D940D7 is a light, highly saturated purple. Relative luminance 0.233; OKLCH L 64.8% C 0.247 H 328.5°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#D940D7
RGBrgb(217, 64, 215)
HSLhsl(301, 67%, 55%)
HSVhsv(301, 71%, 85%)
CMYKcmyk(0%, 70.5%, 0.9%, 14.9%)
CIE-LABlab(55.41, 75.19, -46.59)
CIE-LCHlch(55.41, 88.46, 328.21°)
OKLaboklab(64.81% 0.2106 -0.1289)
OKLCHoklch(64.81% 0.247 328.5)
XYZxyz(42.7140, 23.3279, 66.5298)
Luminance0.2333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940D7 #40D942
analogous
#8E40D9 #D940D7 #D9408B
triadic
#D940D7 #D7D940 #40D7D9
tetradic
#D940D7 #D98E40 #40D942 #408BD9
square
#D940D7 #D98E40 #40D942 #408BD9
split-complementary
#D940D7 #8BD940 #40D98E
monochromatic
#841A83 #B724B5 #D940D7 #E373E2 #EDA6EC

Accessibility & contrast

On white

3.71
#D940D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#D940D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940D7
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940D7#FFFFFF#000000##000000
##D940D71.003.715.675.67
#FFFFFF3.711.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2778DB
Deuteranopia (green-blind)
#6A8CD3
Tritanopia (blue-blind)
#E05688
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #d940d7;
/* rgb */ color: rgb(217, 64, 215);
/* oklch */ color: oklch(64.8% 0.247 328.5);
Tailwind
colors: {
  custom: {
    50: '#e983e4',
    500: '#d940d7',
    950: '#000000',
  },
}
SCSS
$custom: #d940d7;
$custom-light: #e983e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d940d7",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 300.784,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64806,
    "c": 0.24694,
    "h": 328.5
  },
  "luminance": 0.23325
}

Semantic roles & 50–950 ramp

primary
#D940D7
secondary
#9ADA9B
accent
#EA403E
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#170C15
muted
#857D84

Preview Lab

Preview with #D940D7

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

Preview Lab → · Contrast checker → · Palette generator →

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