#D940AF#D940AF

#D940AF is a light, highly saturated pink. Relative luminance 0.215; OKLCH L 62.8% C 0.219 H 341.0°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#D940AF
RGBrgb(217, 64, 175)
HSLhsl(316, 67%, 55%)
HSVhsv(316, 71%, 85%)
CMYKcmyk(0%, 70.5%, 19.4%, 14.9%)
CIE-LABlab(53.51, 69.33, -26.54)
CIE-LCHlch(53.51, 74.24, 339.06°)
OKLaboklab(62.82% 0.2072 -0.0714)
OKLCHoklch(62.82% 0.219 341)
XYZxyz(38.1876, 21.5174, 42.6912)
Luminance0.2151 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D940AF #40D96A
analogous
#B740D9 #D940AF #D94062
triadic
#D940AF #AFD940 #40AFD9
tetradic
#D940AF #D9B740 #40D96A #4062D9
square
#D940AF #D9B740 #40D96A #4062D9
split-complementary
#D940AF #62D940 #40D9B7
monochromatic
#841A67 #B7248F #D940AF #E373C4 #EDA6DA

Accessibility & contrast

On white

3.96
#D940AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#D940AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D940AF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D940AF#FFFFFF#000000##000000
##D940AF1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C70B2
Deuteranopia (green-blind)
#7C89AB
Tritanopia (blue-blind)
#E64372
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d940af;
/* rgb */ color: rgb(217, 64, 175);
/* oklch */ color: oklch(62.8% 0.219 341.0);
Tailwind
colors: {
  custom: {
    50: '#e982c7',
    500: '#d940af',
    950: '#000000',
  },
}
SCSS
$custom: #d940af;
$custom-light: #e982c7;
$custom-dark: #000000;
JSON
{
  "hex": "#d940af",
  "rgb": {
    "r": 217,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 316.471,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6282,
    "c": 0.21917,
    "h": 341
  },
  "luminance": 0.21514
}

Semantic roles & 50–950 ramp

primary
#D940AF
secondary
#9ADAAC
accent
#EA6D3E
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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