#D940A5#D940A5

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

Color values

HEX#D940A5
RGBrgb(217, 64, 165)
HSLhsl(320, 67%, 55%)
HSVhsv(320, 71%, 85%)
CMYKcmyk(0%, 70.5%, 24%, 14.9%)
CIE-LABlab(53.10, 68.03, -21.31)
CIE-LCHlch(53.10, 71.29, 342.61°)
OKLaboklab(62.39% 0.2054 -0.0567)
OKLCHoklch(62.39% 0.213 344.6)
XYZxyz(37.2416, 21.1390, 37.7090)
Luminance0.2114 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940A5 #40D974
analogous
#C040D9 #D940A5 #D94059
triadic
#D940A5 #A5D940 #40A5D9
tetradic
#D940A5 #D9C040 #40D974 #4059D9
square
#D940A5 #D9C040 #40D974 #4059D9
split-complementary
#D940A5 #59D940 #40D9C0
monochromatic
#841A60 #B72485 #D940A5 #E373BD #EDA6D5

Accessibility & contrast

On white

4.02
#D940A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D940A5#FFFFFF#000000##000000
##D940A51.004.025.235.23
#FFFFFF4.021.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#516EA8
Deuteranopia (green-blind)
#7F88A1
Tritanopia (blue-blind)
#E73E6D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d940a5;
/* rgb */ color: rgb(217, 64, 165);
/* oklch */ color: oklch(62.4% 0.213 344.6);
Tailwind
colors: {
  custom: {
    50: '#e981c0',
    500: '#d940a5',
    950: '#000000',
  },
}
SCSS
$custom: #d940a5;
$custom-light: #e981c0;
$custom-dark: #000000;
JSON
{
  "hex": "#d940a5",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 320.392,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62388,
    "c": 0.21312,
    "h": 344.6
  },
  "luminance": 0.21135
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D940A5

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

Preview Lab → · Contrast checker → · Palette generator →

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