#D940A2#D940A2

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

Color values

HEX#D940A2
RGBrgb(217, 64, 162)
HSLhsl(322, 67%, 55%)
HSVhsv(322, 71%, 85%)
CMYKcmyk(0%, 70.5%, 25.3%, 14.9%)
CIE-LABlab(52.98, 67.65, -19.73)
CIE-LCHlch(52.98, 70.46, 343.74°)
OKLaboklab(62.26% 0.2048 -0.0523)
OKLCHoklch(62.26% 0.211 345.7)
XYZxyz(36.9718, 21.0311, 36.2877)
Luminance0.2103 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940A2 #40D977
analogous
#C440D9 #D940A2 #D94055
triadic
#D940A2 #A2D940 #40A2D9
tetradic
#D940A2 #D9C440 #40D977 #4055D9
square
#D940A2 #D9C440 #40D977 #4055D9
split-complementary
#D940A2 #55D940 #40D9C4
monochromatic
#841A5E #B72483 #D940A2 #E373BB #EDA6D4

Accessibility & contrast

On white

4.03
#D940A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#D940A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940A2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940A2#FFFFFF#000000##000000
##D940A21.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#536EA5
Deuteranopia (green-blind)
#80889E
Tritanopia (blue-blind)
#E73D6C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d940a2;
/* rgb */ color: rgb(217, 64, 162);
/* oklch */ color: oklch(62.3% 0.211 345.7);
Tailwind
colors: {
  custom: {
    50: '#e981bd',
    500: '#d940a2',
    950: '#000000',
  },
}
SCSS
$custom: #d940a2;
$custom-light: #e981bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d940a2",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 321.569,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62263,
    "c": 0.2114,
    "h": 345.7
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

primary
#D940A2
secondary
#9ADAB1
accent
#EA7C3E
background
#FEF8FB
surface
#FDF0F6
border
#D5CBD0
text
#170B12
muted
#857C81

Preview Lab

Preview with #D940A2

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

Preview Lab → · Contrast checker → · Palette generator →

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