#D840A4#D840A4

#D840A4 is a light, highly saturated pink. Relative luminance 0.209; OKLCH L 62.2% C 0.212 H 344.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#D840A4
RGBrgb(216, 64, 164)
HSLhsl(321, 66%, 55%)
HSVhsv(321, 70%, 85%)
CMYKcmyk(0%, 70.4%, 24.1%, 15.3%)
CIE-LABlab(52.89, 67.64, -21.05)
CIE-LCHlch(52.89, 70.85, 342.71°)
OKLaboklab(62.19% 0.2043 -0.056)
OKLCHoklch(62.19% 0.212 344.7)
XYZxyz(36.8546, 20.9499, 37.2176)
Luminance0.2095 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840A4 #40D874
analogous
#C040D8 #D840A4 #D84058
triadic
#D840A4 #A4D840 #40A4D8
tetradic
#D840A4 #D8C040 #40D874 #4058D8
square
#D840A4 #D8C040 #40D874 #4058D8
split-complementary
#D840A4 #58D840 #40D8C0
monochromatic
#831B5F #B62584 #D840A4 #E273BC #EDA6D4

Accessibility & contrast

On white

4.05
#D840A4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#D840A4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840A4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840A4#FFFFFF#000000##000000
##D840A41.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#516EA7
Deuteranopia (green-blind)
#7F88A0
Tritanopia (blue-blind)
#E63E6D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d840a4;
/* rgb */ color: rgb(216, 64, 164);
/* oklch */ color: oklch(62.2% 0.212 344.7);
Tailwind
colors: {
  custom: {
    50: '#e881bf',
    500: '#d840a4',
    950: '#000000',
  },
}
SCSS
$custom: #d840a4;
$custom-light: #e881bf;
$custom-dark: #000000;
JSON
{
  "hex": "#d840a4",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 320.526,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.62193,
    "c": 0.21186,
    "h": 344.7
  },
  "luminance": 0.20946
}

Semantic roles & 50–950 ramp

primary
#D840A4
secondary
#9ADAB0
accent
#E9793F
background
#FEF8FB
surface
#FDF0F7
border
#D5CBD0
text
#170B12
muted
#857C81

Preview Lab

Preview with #D840A4

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

Preview Lab → · Contrast checker → · Palette generator →

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