#D940C2#D940C2

#D940C2 is a light, highly saturated purple. Relative luminance 0.223; OKLCH L 63.7% C 0.232 H 334.7°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#D940C2
RGBrgb(217, 64, 194)
HSLhsl(309, 67%, 55%)
HSVhsv(309, 71%, 85%)
CMYKcmyk(0%, 70.5%, 10.6%, 14.9%)
CIE-LABlab(54.36, 71.99, -36.23)
CIE-LCHlch(54.36, 80.60, 333.29°)
OKLaboklab(63.71% 0.2096 -0.099)
OKLCHoklch(63.71% 0.232 334.7)
XYZxyz(40.1867, 22.3170, 53.2196)
Luminance0.2231 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940C2 #40D957
analogous
#A440D9 #D940C2 #D94075
triadic
#D940C2 #C2D940 #40C2D9
tetradic
#D940C2 #D9A440 #40D957 #4075D9
square
#D940C2 #D9A440 #40D957 #4075D9
split-complementary
#D940C2 #75D940 #40D9A4
monochromatic
#841A74 #B724A1 #D940C2 #E373D2 #EDA6E3

Accessibility & contrast

On white

3.84
#D940C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#D940C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940C2
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940C2#FFFFFF#000000##000000
##D940C21.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F74C6
Deuteranopia (green-blind)
#748ABE
Tritanopia (blue-blind)
#E34C7C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d940c2;
/* rgb */ color: rgb(217, 64, 194);
/* oklch */ color: oklch(63.7% 0.232 334.7);
Tailwind
colors: {
  custom: {
    50: '#e982d5',
    500: '#d940c2',
    950: '#000000',
  },
}
SCSS
$custom: #d940c2;
$custom-light: #e982d5;
$custom-dark: #000000;
JSON
{
  "hex": "#d940c2",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 309.02,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63714,
    "c": 0.23178,
    "h": 334.7
  },
  "luminance": 0.22314
}

Semantic roles & 50–950 ramp

primary
#D940C2
secondary
#9ADAA4
accent
#EA583E
background
#FEF8FD
surface
#FDF0FA
border
#D5CBD3
text
#170C14
muted
#857D83

Preview Lab

Preview with #D940C2

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

Preview Lab → · Contrast checker → · Palette generator →

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