#D940C9#D940C9

#D940C9 is a light, highly saturated purple. Relative luminance 0.226; OKLCH L 64.1% C 0.237 H 332.6°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#D940C9
RGBrgb(217, 64, 201)
HSLhsl(306, 67%, 55%)
HSVhsv(306, 71%, 85%)
CMYKcmyk(0%, 70.5%, 7.4%, 14.9%)
CIE-LABlab(54.70, 73.03, -39.73)
CIE-LCHlch(54.70, 83.14, 331.46°)
OKLaboklab(64.07% 0.2101 -0.109)
OKLCHoklch(64.07% 0.237 332.6)
XYZxyz(40.9914, 22.6389, 57.4578)
Luminance0.2264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940C9 #40D950
analogous
#9D40D9 #D940C9 #D9407C
triadic
#D940C9 #C9D940 #40C9D9
tetradic
#D940C9 #D99D40 #40D950 #407CD9
square
#D940C9 #D99D40 #40D950 #407CD9
split-complementary
#D940C9 #7CD940 #40D99D
monochromatic
#841A79 #B724A8 #D940C9 #E373D7 #EDA6E6

Accessibility & contrast

On white

3.80
#D940C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#D940C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940C9
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940C9#FFFFFF#000000##000000
##D940C91.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3875CD
Deuteranopia (green-blind)
#718BC5
Tritanopia (blue-blind)
#E25080
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d940c9;
/* rgb */ color: rgb(217, 64, 201);
/* oklch */ color: oklch(64.1% 0.237 332.6);
Tailwind
colors: {
  custom: {
    50: '#e982da',
    500: '#d940c9',
    950: '#000000',
  },
}
SCSS
$custom: #d940c9;
$custom-light: #e982da;
$custom-dark: #000000;
JSON
{
  "hex": "#d940c9",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 306.275,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64066,
    "c": 0.23671,
    "h": 332.6
  },
  "luminance": 0.22636
}

Semantic roles & 50–950 ramp

primary
#D940C9
secondary
#9ADAA1
accent
#EA503E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940C9

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

Preview Lab → · Contrast checker → · Palette generator →

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