#D940A8#D940A8

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

Color values

HEX#D940A8
RGBrgb(217, 64, 168)
HSLhsl(319, 67%, 55%)
HSVhsv(319, 71%, 85%)
CMYKcmyk(0%, 70.5%, 22.6%, 14.9%)
CIE-LABlab(53.22, 68.41, -22.89)
CIE-LCHlch(53.22, 72.14, 341.50°)
OKLaboklab(62.52% 0.206 -0.0612)
OKLCHoklch(62.52% 0.215 343.5)
XYZxyz(37.5179, 21.2495, 39.1639)
Luminance0.2125 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940A8 #40D971
analogous
#BE40D9 #D940A8 #D9405B
triadic
#D940A8 #A8D940 #40A8D9
tetradic
#D940A8 #D9BE40 #40D971 #405BD9
square
#D940A8 #D9BE40 #40D971 #405BD9
split-complementary
#D940A8 #5BD940 #40D9BE
monochromatic
#841A62 #B72488 #D940A8 #E373BF #EDA6D7

Accessibility & contrast

On white

4.00
#D940A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#D940A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940A8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940A8#FFFFFF#000000##000000
##D940A81.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#506FAB
Deuteranopia (green-blind)
#7E88A4
Tritanopia (blue-blind)
#E7406F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d940a8;
/* rgb */ color: rgb(217, 64, 168);
/* oklch */ color: oklch(62.5% 0.215 343.5);
Tailwind
colors: {
  custom: {
    50: '#e981c2',
    500: '#d940a8',
    950: '#000000',
  },
}
SCSS
$custom: #d940a8;
$custom-light: #e981c2;
$custom-dark: #000000;
JSON
{
  "hex": "#d940a8",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 319.216,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62515,
    "c": 0.21489,
    "h": 343.5
  },
  "luminance": 0.21246
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D940A8

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

Preview Lab → · Contrast checker → · Palette generator →

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