#D940C5#D940C5

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

Color values

HEX#D940C5
RGBrgb(217, 64, 197)
HSLhsl(308, 67%, 55%)
HSVhsv(308, 71%, 85%)
CMYKcmyk(0%, 70.5%, 9.2%, 14.9%)
CIE-LABlab(54.50, 72.43, -37.73)
CIE-LCHlch(54.50, 81.67, 332.48°)
OKLaboklab(63.86% 0.2098 -0.1033)
OKLCHoklch(63.86% 0.234 333.8)
XYZxyz(40.5270, 22.4531, 55.0119)
Luminance0.2245 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940C5 #40D954
analogous
#A040D9 #D940C5 #D94079
triadic
#D940C5 #C5D940 #40C5D9
tetradic
#D940C5 #D9A040 #40D954 #4079D9
square
#D940C5 #D9A040 #40D954 #4079D9
split-complementary
#D940C5 #79D940 #40D9A0
monochromatic
#841A76 #B724A4 #D940C5 #E373D5 #EDA6E4

Accessibility & contrast

On white

3.83
#D940C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#D940C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940C5
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940C5#FFFFFF#000000##000000
##D940C51.003.835.495.49
#FFFFFF3.831.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d940c5;
/* rgb */ color: rgb(217, 64, 197);
/* oklch */ color: oklch(63.9% 0.234 333.8);
Tailwind
colors: {
  custom: {
    50: '#e982d7',
    500: '#d940c5',
    950: '#000000',
  },
}
SCSS
$custom: #d940c5;
$custom-light: #e982d7;
$custom-dark: #000000;
JSON
{
  "hex": "#d940c5",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 307.843,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63863,
    "c": 0.23387,
    "h": 333.8
  },
  "luminance": 0.2245
}

Semantic roles & 50–950 ramp

primary
#D940C5
secondary
#9ADAA3
accent
#EA553E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D940C5

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

Preview Lab → · Contrast checker → · Palette generator →

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