#D940A6#D940A6

#D940A6 is a light, highly saturated pink. Relative luminance 0.212; OKLCH L 62.4% C 0.214 H 344.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#D940A6
RGBrgb(217, 64, 166)
HSLhsl(320, 67%, 55%)
HSVhsv(320, 71%, 85%)
CMYKcmyk(0%, 70.5%, 23.5%, 14.9%)
CIE-LABlab(53.14, 68.15, -21.84)
CIE-LCHlch(53.14, 71.57, 342.23°)
OKLaboklab(62.43% 0.2056 -0.0582)
OKLCHoklch(62.43% 0.214 344.2)
XYZxyz(37.3330, 21.1755, 38.1902)
Luminance0.2117 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940A6 #40D973
analogous
#BF40D9 #D940A6 #D9405A
triadic
#D940A6 #A6D940 #40A6D9
tetradic
#D940A6 #D9BF40 #40D973 #405AD9
square
#D940A6 #D9BF40 #40D973 #405AD9
split-complementary
#D940A6 #5AD940 #40D9BF
monochromatic
#841A61 #B72486 #D940A6 #E373BE #EDA6D6

Accessibility & contrast

On white

4.01
#D940A6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#D940A6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940A6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940A6#FFFFFF#000000##000000
##D940A61.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#516FA9
Deuteranopia (green-blind)
#7F88A2
Tritanopia (blue-blind)
#E73F6E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d940a6;
/* rgb */ color: rgb(217, 64, 166);
/* oklch */ color: oklch(62.4% 0.214 344.2);
Tailwind
colors: {
  custom: {
    50: '#e981c0',
    500: '#d940a6',
    950: '#000000',
  },
}
SCSS
$custom: #d940a6;
$custom-light: #e981c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d940a6",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 320,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6243,
    "c": 0.2137,
    "h": 344.2
  },
  "luminance": 0.21172
}

Semantic roles & 50–950 ramp

primary
#D940A6
secondary
#9ADAB0
accent
#EA773E
background
#FEF8FB
surface
#FDF0F7
border
#D5CBD0
text
#170B12
muted
#857C81

Preview Lab

Preview with #D940A6

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

Preview Lab → · Contrast checker → · Palette generator →

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