#D940CA#D940CA

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

Color values

HEX#D940CA
RGBrgb(217, 64, 202)
HSLhsl(306, 67%, 55%)
HSVhsv(306, 71%, 85%)
CMYKcmyk(0%, 70.5%, 6.9%, 14.9%)
CIE-LABlab(54.75, 73.18, -40.22)
CIE-LCHlch(54.75, 83.51, 331.21°)
OKLaboklab(64.12% 0.2102 -0.1105)
OKLCHoklch(64.12% 0.237 332.3)
XYZxyz(41.1094, 22.6861, 58.0794)
Luminance0.2268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940CA #40D94F
analogous
#9B40D9 #D940CA #D9407E
triadic
#D940CA #CAD940 #40CAD9
tetradic
#D940CA #D99B40 #40D94F #407ED9
square
#D940CA #D99B40 #40D94F #407ED9
split-complementary
#D940CA #7ED940 #40D99B
monochromatic
#841A7A #B724A9 #D940CA #E373D8 #EDA6E6

Accessibility & contrast

On white

3.79
#D940CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#D940CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940CA
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940CA#FFFFFF#000000##000000
##D940CA1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3775CE
Deuteranopia (green-blind)
#718BC6
Tritanopia (blue-blind)
#E25081
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d940ca;
/* rgb */ color: rgb(217, 64, 202);
/* oklch */ color: oklch(64.1% 0.237 332.3);
Tailwind
colors: {
  custom: {
    50: '#e982da',
    500: '#d940ca',
    950: '#000000',
  },
}
SCSS
$custom: #d940ca;
$custom-light: #e982da;
$custom-dark: #000000;
JSON
{
  "hex": "#d940ca",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 305.882,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64117,
    "c": 0.23742,
    "h": 332.3
  },
  "luminance": 0.22683
}

Semantic roles & 50–950 ramp

primary
#D940CA
secondary
#9ADAA1
accent
#EA4F3E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940CA

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

Preview Lab → · Contrast checker → · Palette generator →

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