#D940CF#D940CF

#D940CF is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 64.4% C 0.241 H 330.8°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#D940CF
RGBrgb(217, 64, 207)
HSLhsl(304, 67%, 55%)
HSVhsv(304, 71%, 85%)
CMYKcmyk(0%, 70.5%, 4.6%, 14.9%)
CIE-LABlab(55.00, 73.94, -42.69)
CIE-LCHlch(55.00, 85.38, 330.00°)
OKLaboklab(64.38% 0.2104 -0.1176)
OKLCHoklch(64.38% 0.241 330.8)
XYZxyz(41.7110, 22.9268, 61.2478)
Luminance0.2292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940CF #40D94A
analogous
#9740D9 #D940CF #D94082
triadic
#D940CF #CFD940 #40CFD9
tetradic
#D940CF #D99740 #40D94A #4082D9
square
#D940CF #D99740 #40D94A #4082D9
split-complementary
#D940CF #82D940 #40D997
monochromatic
#841A7D #B724AE #D940CF #E373DC #EDA6E9

Accessibility & contrast

On white

3.76
#D940CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#D940CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940CF
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940CF#FFFFFF#000000##000000
##D940CF1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3276D3
Deuteranopia (green-blind)
#6E8BCB
Tritanopia (blue-blind)
#E15283
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d940cf;
/* rgb */ color: rgb(217, 64, 207);
/* oklch */ color: oklch(64.4% 0.241 330.8);
Tailwind
colors: {
  custom: {
    50: '#e983de',
    500: '#d940cf',
    950: '#000000',
  },
}
SCSS
$custom: #d940cf;
$custom-light: #e983de;
$custom-dark: #000000;
JSON
{
  "hex": "#d940cf",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 303.922,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.64377,
    "c": 0.24104,
    "h": 330.8
  },
  "luminance": 0.22923
}

Semantic roles & 50–950 ramp

primary
#D940CF
secondary
#9ADA9F
accent
#EA493E
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#170C15
muted
#857D83

Preview Lab

Preview with #D940CF

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

Preview Lab → · Contrast checker → · Palette generator →

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