#D940AB#D940AB

#D940AB is a light, highly saturated pink. Relative luminance 0.214; OKLCH L 62.6% C 0.217 H 342.4°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#D940AB
RGBrgb(217, 64, 171)
HSLhsl(318, 67%, 55%)
HSVhsv(318, 71%, 85%)
CMYKcmyk(0%, 70.5%, 21.2%, 14.9%)
CIE-LABlab(53.34, 68.80, -24.46)
CIE-LCHlch(53.34, 73.02, 340.43°)
OKLaboklab(62.64% 0.2065 -0.0656)
OKLCHoklch(62.64% 0.217 342.4)
XYZxyz(37.8006, 21.3626, 40.6528)
Luminance0.2136 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940AB #40D96E
analogous
#BA40D9 #D940AB #D9405F
triadic
#D940AB #ABD940 #40ABD9
tetradic
#D940AB #D9BA40 #40D96E #405FD9
square
#D940AB #D9BA40 #40D96E #405FD9
split-complementary
#D940AB #5FD940 #40D9BA
monochromatic
#841A64 #B7248B #D940AB #E373C1 #EDA6D8

Accessibility & contrast

On white

3.98
#D940AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#D940AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940AB
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940AB#FFFFFF#000000##000000
##D940AB1.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6FAE
Deuteranopia (green-blind)
#7D88A7
Tritanopia (blue-blind)
#E64170
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d940ab;
/* rgb */ color: rgb(217, 64, 171);
/* oklch */ color: oklch(62.6% 0.217 342.4);
Tailwind
colors: {
  custom: {
    50: '#e981c4',
    500: '#d940ab',
    950: '#000000',
  },
}
SCSS
$custom: #d940ab;
$custom-light: #e981c4;
$custom-dark: #000000;
JSON
{
  "hex": "#d940ab",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 318.039,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.62644,
    "c": 0.2167,
    "h": 342.4
  },
  "luminance": 0.21359
}

Semantic roles & 50–950 ramp

primary
#D940AB
secondary
#9ADAAE
accent
#EA723E
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B12
muted
#857C81

Preview Lab

Preview with #D940AB

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

Preview Lab → · Contrast checker → · Palette generator →

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