#D940C7#D940C7

#D940C7 is a light, highly saturated purple. Relative luminance 0.225; OKLCH L 64.0% C 0.235 H 333.2°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#D940C7
RGBrgb(217, 64, 199)
HSLhsl(307, 67%, 55%)
HSVhsv(307, 71%, 85%)
CMYKcmyk(0%, 70.5%, 8.3%, 14.9%)
CIE-LABlab(54.60, 72.73, -38.73)
CIE-LCHlch(54.60, 82.40, 331.96°)
OKLaboklab(63.96% 0.21 -0.1062)
OKLCHoklch(63.96% 0.235 333.2)
XYZxyz(40.7577, 22.5454, 56.2268)
Luminance0.2254 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940C7 #40D952
analogous
#9F40D9 #D940C7 #D9407A
triadic
#D940C7 #C7D940 #40C7D9
tetradic
#D940C7 #D99F40 #40D952 #407AD9
square
#D940C7 #D99F40 #40D952 #407AD9
split-complementary
#D940C7 #7AD940 #40D99F
monochromatic
#841A78 #B724A6 #D940C7 #E373D6 #EDA6E5

Accessibility & contrast

On white

3.81
#D940C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#D940C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940C7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940C7#FFFFFF#000000##000000
##D940C71.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A75CB
Deuteranopia (green-blind)
#728AC3
Tritanopia (blue-blind)
#E34F7F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d940c7;
/* rgb */ color: rgb(217, 64, 199);
/* oklch */ color: oklch(64.0% 0.235 333.2);
Tailwind
colors: {
  custom: {
    50: '#e982d8',
    500: '#d940c7',
    950: '#000000',
  },
}
SCSS
$custom: #d940c7;
$custom-light: #e982d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d940c7",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 307.059,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63964,
    "c": 0.23529,
    "h": 333.2
  },
  "luminance": 0.22542
}

Semantic roles & 50–950 ramp

primary
#D940C7
secondary
#9ADAA2
accent
#EA523E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D940C7

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

Preview Lab → · Contrast checker → · Palette generator →

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