#D940C1#D940C1

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

Color values

HEX#D940C1
RGBrgb(217, 64, 193)
HSLhsl(309, 67%, 55%)
HSVhsv(309, 71%, 85%)
CMYKcmyk(0%, 70.5%, 11.1%, 14.9%)
CIE-LABlab(54.31, 71.85, -35.73)
CIE-LCHlch(54.31, 80.24, 333.56°)
OKLaboklab(63.66% 0.2095 -0.0976)
OKLCHoklch(63.66% 0.231 335)
XYZxyz(40.0748, 22.2722, 52.6301)
Luminance0.2227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940C1 #40D958
analogous
#A540D9 #D940C1 #D94074
triadic
#D940C1 #C1D940 #40C1D9
tetradic
#D940C1 #D9A540 #40D958 #4074D9
square
#D940C1 #D9A540 #40D958 #4074D9
split-complementary
#D940C1 #74D940 #40D9A5
monochromatic
#841A74 #B724A0 #D940C1 #E373D2 #EDA6E2

Accessibility & contrast

On white

3.85
#D940C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#D940C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940C1
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940C1#FFFFFF#000000##000000
##D940C11.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F73C5
Deuteranopia (green-blind)
#758ABD
Tritanopia (blue-blind)
#E34C7C
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d940c1;
/* rgb */ color: rgb(217, 64, 193);
/* oklch */ color: oklch(63.7% 0.231 335.0);
Tailwind
colors: {
  custom: {
    50: '#e982d4',
    500: '#d940c1',
    950: '#000000',
  },
}
SCSS
$custom: #d940c1;
$custom-light: #e982d4;
$custom-dark: #000000;
JSON
{
  "hex": "#d940c1",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 309.412,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.63664,
    "c": 0.23108,
    "h": 335
  },
  "luminance": 0.22269
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D940C1

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

Preview Lab → · Contrast checker → · Palette generator →

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