#D940A7#D940A7

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

Color values

HEX#D940A7
RGBrgb(217, 64, 167)
HSLhsl(320, 67%, 55%)
HSVhsv(320, 71%, 85%)
CMYKcmyk(0%, 70.5%, 23%, 14.9%)
CIE-LABlab(53.18, 68.28, -22.36)
CIE-LCHlch(53.18, 71.85, 341.87°)
OKLaboklab(62.47% 0.2058 -0.0597)
OKLCHoklch(62.47% 0.214 343.8)
XYZxyz(37.4251, 21.2124, 38.6752)
Luminance0.2121 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940A7 #40D972
analogous
#BF40D9 #D940A7 #D9405A
triadic
#D940A7 #A7D940 #40A7D9
tetradic
#D940A7 #D9BF40 #40D972 #405AD9
square
#D940A7 #D9BF40 #40D972 #405AD9
split-complementary
#D940A7 #5AD940 #40D9BF
monochromatic
#841A62 #B72487 #D940A7 #E373BF #EDA6D6

Accessibility & contrast

On white

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

On black

5.24
#D940A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940A7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940A7#FFFFFF#000000##000000
##D940A71.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#506FAA
Deuteranopia (green-blind)
#7F88A3
Tritanopia (blue-blind)
#E73F6E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d940a7;
/* rgb */ color: rgb(217, 64, 167);
/* oklch */ color: oklch(62.5% 0.214 343.8);
Tailwind
colors: {
  custom: {
    50: '#e981c1',
    500: '#d940a7',
    950: '#000000',
  },
}
SCSS
$custom: #d940a7;
$custom-light: #e981c1;
$custom-dark: #000000;
JSON
{
  "hex": "#d940a7",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 319.608,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62472,
    "c": 0.21429,
    "h": 343.8
  },
  "luminance": 0.21209
}

Semantic roles & 50–950 ramp

primary
#D940A7
secondary
#9ADAAF
accent
#EA763E
background
#FEF8FB
surface
#FDF0F7
border
#D5CBD0
text
#170B12
muted
#857C81

Preview Lab

Preview with #D940A7

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

Preview Lab → · Contrast checker → · Palette generator →

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