#D940AC#D940AC

#D940AC is a light, highly saturated pink. Relative luminance 0.214; OKLCH L 62.7% C 0.217 H 342.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#D940AC
RGBrgb(217, 64, 172)
HSLhsl(318, 67%, 55%)
HSVhsv(318, 71%, 85%)
CMYKcmyk(0%, 70.5%, 20.7%, 14.9%)
CIE-LABlab(53.39, 68.93, -24.98)
CIE-LCHlch(53.39, 73.32, 340.08°)
OKLaboklab(62.69% 0.2067 -0.067)
OKLCHoklch(62.69% 0.217 342)
XYZxyz(37.8963, 21.4008, 41.1567)
Luminance0.2140 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940AC #40D96D
analogous
#B940D9 #D940AC #D94060
triadic
#D940AC #ACD940 #40ACD9
tetradic
#D940AC #D9B940 #40D96D #4060D9
square
#D940AC #D9B940 #40D96D #4060D9
split-complementary
#D940AC #60D940 #40D9B9
monochromatic
#841A65 #B7248C #D940AC #E373C2 #EDA6D8

Accessibility & contrast

On white

3.98
#D940AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#D940AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940AC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940AC#FFFFFF#000000##000000
##D940AC1.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D70AF
Deuteranopia (green-blind)
#7D89A8
Tritanopia (blue-blind)
#E64271
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d940ac;
/* rgb */ color: rgb(217, 64, 172);
/* oklch */ color: oklch(62.7% 0.217 342.0);
Tailwind
colors: {
  custom: {
    50: '#e981c5',
    500: '#d940ac',
    950: '#000000',
  },
}
SCSS
$custom: #d940ac;
$custom-light: #e981c5;
$custom-dark: #000000;
JSON
{
  "hex": "#d940ac",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 317.647,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62688,
    "c": 0.21731,
    "h": 342
  },
  "luminance": 0.21397
}

Semantic roles & 50–950 ramp

primary
#D940AC
secondary
#9ADAAD
accent
#EA713E
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D940AC

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

Preview Lab → · Contrast checker → · Palette generator →

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