#D940D3#D940D3

#D940D3 is a light, highly saturated purple. Relative luminance 0.231; OKLCH L 64.6% C 0.244 H 329.6°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#D940D3
RGBrgb(217, 64, 211)
HSLhsl(302, 67%, 55%)
HSVhsv(302, 71%, 85%)
CMYKcmyk(0%, 70.5%, 2.8%, 14.9%)
CIE-LABlab(55.20, 74.56, -44.65)
CIE-LCHlch(55.20, 86.91, 329.09°)
OKLaboklab(64.59% 0.2105 -0.1233)
OKLCHoklch(64.59% 0.244 329.6)
XYZxyz(42.2063, 23.1248, 63.8560)
Luminance0.2312 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940D3 #40D946
analogous
#9340D9 #D940D3 #D94086
triadic
#D940D3 #D3D940 #40D3D9
tetradic
#D940D3 #D99340 #40D946 #4086D9
square
#D940D3 #D99340 #40D946 #4086D9
split-complementary
#D940D3 #86D940 #40D993
monochromatic
#841A80 #B724B2 #D940D3 #E373DF #EDA6EB

Accessibility & contrast

On white

3.73
#D940D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#D940D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940D3
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940D3#FFFFFF#000000##000000
##D940D31.003.735.625.62
#FFFFFF3.731.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D77D7
Deuteranopia (green-blind)
#6C8BCF
Tritanopia (blue-blind)
#E15486
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d940d3;
/* rgb */ color: rgb(217, 64, 211);
/* oklch */ color: oklch(64.6% 0.244 329.6);
Tailwind
colors: {
  custom: {
    50: '#e983e1',
    500: '#d940d3',
    950: '#000000',
  },
}
SCSS
$custom: #d940d3;
$custom-light: #e983e1;
$custom-dark: #000000;
JSON
{
  "hex": "#d940d3",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 302.353,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6459,
    "c": 0.24397,
    "h": 329.6
  },
  "luminance": 0.23122
}

Semantic roles & 50–950 ramp

primary
#D940D3
secondary
#9ADA9D
accent
#EA453E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940D3

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

Preview Lab → · Contrast checker → · Palette generator →

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