#D940CB#D940CB

#D940CB is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 64.2% C 0.238 H 332.0°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#D940CB
RGBrgb(217, 64, 203)
HSLhsl(305, 67%, 55%)
HSVhsv(305, 71%, 85%)
CMYKcmyk(0%, 70.5%, 6.5%, 14.9%)
CIE-LABlab(54.80, 73.33, -40.72)
CIE-LCHlch(54.80, 83.88, 330.96°)
OKLaboklab(64.17% 0.2102 -0.1119)
OKLCHoklch(64.17% 0.238 332)
XYZxyz(41.2282, 22.7336, 58.7049)
Luminance0.2273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940CB #40D94E
analogous
#9A40D9 #D940CB #D9407F
triadic
#D940CB #CBD940 #40CBD9
tetradic
#D940CB #D99A40 #40D94E #407FD9
square
#D940CB #D99A40 #40D94E #407FD9
split-complementary
#D940CB #7FD940 #40D99A
monochromatic
#841A7B #B724AA #D940CB #E373D9 #EDA6E7

Accessibility & contrast

On white

3.79
#D940CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#D940CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940CB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940CB#FFFFFF#000000##000000
##D940CB1.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3675CF
Deuteranopia (green-blind)
#708BC7
Tritanopia (blue-blind)
#E25181
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #d940cb;
/* rgb */ color: rgb(217, 64, 203);
/* oklch */ color: oklch(64.2% 0.238 332.0);
Tailwind
colors: {
  custom: {
    50: '#e982db',
    500: '#d940cb',
    950: '#000000',
  },
}
SCSS
$custom: #d940cb;
$custom-light: #e982db;
$custom-dark: #000000;
JSON
{
  "hex": "#d940cb",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 305.49,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64169,
    "c": 0.23814,
    "h": 332
  },
  "luminance": 0.2273
}

Semantic roles & 50–950 ramp

primary
#D940CB
secondary
#9ADAA0
accent
#EA4E3E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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