#D940C6#D940C6

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

Color values

HEX#D940C6
RGBrgb(217, 64, 198)
HSLhsl(307, 67%, 55%)
HSVhsv(307, 71%, 85%)
CMYKcmyk(0%, 70.5%, 8.8%, 14.9%)
CIE-LABlab(54.55, 72.58, -38.23)
CIE-LCHlch(54.55, 82.04, 332.22°)
OKLaboklab(63.91% 0.2099 -0.1048)
OKLCHoklch(63.91% 0.235 333.5)
XYZxyz(40.6420, 22.4991, 55.6174)
Luminance0.2250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940C6 #40D953
analogous
#9F40D9 #D940C6 #D94079
triadic
#D940C6 #C6D940 #40C6D9
tetradic
#D940C6 #D99F40 #40D953 #4079D9
square
#D940C6 #D99F40 #40D953 #4079D9
split-complementary
#D940C6 #79D940 #40D99F
monochromatic
#841A77 #B724A5 #D940C6 #E373D5 #EDA6E4

Accessibility & contrast

On white

3.82
#D940C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#D940C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940C6
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940C6#FFFFFF#000000##000000
##D940C61.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B74CA
Deuteranopia (green-blind)
#738AC2
Tritanopia (blue-blind)
#E34E7E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d940c6;
/* rgb */ color: rgb(217, 64, 198);
/* oklch */ color: oklch(63.9% 0.235 333.5);
Tailwind
colors: {
  custom: {
    50: '#e982d7',
    500: '#d940c6',
    950: '#000000',
  },
}
SCSS
$custom: #d940c6;
$custom-light: #e982d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d940c6",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 307.451,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63913,
    "c": 0.23458,
    "h": 333.5
  },
  "luminance": 0.22496
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D940C6

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

Preview Lab → · Contrast checker → · Palette generator →

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