#D840A1#D840A1

#D840A1 is a light, highly saturated pink. Relative luminance 0.208; OKLCH L 62.1% C 0.210 H 345.8°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#D840A1
RGBrgb(216, 64, 161)
HSLhsl(322, 66%, 55%)
HSVhsv(322, 70%, 85%)
CMYKcmyk(0%, 70.4%, 25.5%, 15.3%)
CIE-LABlab(52.78, 67.27, -19.47)
CIE-LCHlch(52.78, 70.03, 343.86°)
OKLaboklab(62.07% 0.2037 -0.0516)
OKLCHoklch(62.07% 0.21 345.8)
XYZxyz(36.5868, 20.8428, 35.8076)
Luminance0.2084 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840A1 #40D877
analogous
#C340D8 #D840A1 #D84055
triadic
#D840A1 #A1D840 #40A1D8
tetradic
#D840A1 #D8C340 #40D877 #4055D8
square
#D840A1 #D8C340 #40D877 #4055D8
split-complementary
#D840A1 #55D840 #40D8C3
monochromatic
#831B5D #B62581 #D840A1 #E273BA #EDA6D3

Accessibility & contrast

On white

4.06
#D840A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#D840A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840A1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840A1#FFFFFF#000000##000000
##D840A11.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#536DA4
Deuteranopia (green-blind)
#80879D
Tritanopia (blue-blind)
#E63D6B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d840a1;
/* rgb */ color: rgb(216, 64, 161);
/* oklch */ color: oklch(62.1% 0.210 345.8);
Tailwind
colors: {
  custom: {
    50: '#e881bd',
    500: '#d840a1',
    950: '#000000',
  },
}
SCSS
$custom: #d840a1;
$custom-light: #e881bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d840a1",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 321.711,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.62068,
    "c": 0.21014,
    "h": 345.8
  },
  "luminance": 0.20839
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D840A1

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

Preview Lab → · Contrast checker → · Palette generator →

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