#D940A1#D940A1

#D940A1 is a light, highly saturated pink. Relative luminance 0.210; OKLCH L 62.2% C 0.211 H 346.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#D940A1
RGBrgb(217, 64, 161)
HSLhsl(322, 67%, 55%)
HSVhsv(322, 71%, 85%)
CMYKcmyk(0%, 70.5%, 25.8%, 14.9%)
CIE-LABlab(52.94, 67.52, -19.20)
CIE-LCHlch(52.94, 70.20, 344.13°)
OKLaboklab(62.22% 0.2046 -0.0509)
OKLCHoklch(62.22% 0.211 346)
XYZxyz(36.8833, 20.9956, 35.8215)
Luminance0.2099 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940A1 #40D978
analogous
#C540D9 #D940A1 #D94054
triadic
#D940A1 #A1D940 #40A1D9
tetradic
#D940A1 #D9C540 #40D978 #4054D9
square
#D940A1 #D9C540 #40D978 #4054D9
split-complementary
#D940A1 #54D940 #40D9C5
monochromatic
#841A5D #B72482 #D940A1 #E373BA #EDA6D3

Accessibility & contrast

On white

4.04
#D940A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#D940A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940A1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940A1#FFFFFF#000000##000000
##D940A11.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#536EA4
Deuteranopia (green-blind)
#81889D
Tritanopia (blue-blind)
#E83C6B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d940a1;
/* rgb */ color: rgb(217, 64, 161);
/* oklch */ color: oklch(62.2% 0.211 346.0);
Tailwind
colors: {
  custom: {
    50: '#e981bd',
    500: '#d940a1',
    950: '#000000',
  },
}
SCSS
$custom: #d940a1;
$custom-light: #e981bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d940a1",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 321.961,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62222,
    "c": 0.21084,
    "h": 346
  },
  "luminance": 0.20992
}

Semantic roles & 50–950 ramp

primary
#D940A1
secondary
#9ADAB2
accent
#EA7D3E
background
#FEF8FB
surface
#FDF0F6
border
#D5CBD0
text
#170B12
muted
#857C81

Preview Lab

Preview with #D940A1

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

Preview Lab → · Contrast checker → · Palette generator →

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