#D840A3#D840A3

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

Color values

HEX#D840A3
RGBrgb(216, 64, 163)
HSLhsl(321, 66%, 55%)
HSVhsv(321, 70%, 85%)
CMYKcmyk(0%, 70.4%, 24.5%, 15.3%)
CIE-LABlab(52.86, 67.52, -20.53)
CIE-LCHlch(52.86, 70.57, 343.09°)
OKLaboklab(62.15% 0.2041 -0.0546)
OKLCHoklch(62.15% 0.211 345)
XYZxyz(36.7646, 20.9139, 36.7439)
Luminance0.2091 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840A3 #40D875
analogous
#C140D8 #D840A3 #D84057
triadic
#D840A3 #A3D840 #40A3D8
tetradic
#D840A3 #D8C140 #40D875 #4057D8
square
#D840A3 #D8C140 #40D875 #4057D8
split-complementary
#D840A3 #57D840 #40D8C1
monochromatic
#831B5F #B62583 #D840A3 #E273BB #EDA6D4

Accessibility & contrast

On white

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

On black

5.18
#D840A3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840A3
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840A3#FFFFFF#000000##000000
##D840A31.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#526EA6
Deuteranopia (green-blind)
#7F879F
Tritanopia (blue-blind)
#E63E6C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d840a3;
/* rgb */ color: rgb(216, 64, 163);
/* oklch */ color: oklch(62.2% 0.211 345.0);
Tailwind
colors: {
  custom: {
    50: '#e881be',
    500: '#d840a3',
    950: '#000000',
  },
}
SCSS
$custom: #d840a3;
$custom-light: #e881be;
$custom-dark: #000000;
JSON
{
  "hex": "#d840a3",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 320.921,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.62151,
    "c": 0.21128,
    "h": 345
  },
  "luminance": 0.2091
}

Semantic roles & 50–950 ramp

primary
#D840A3
secondary
#9ADAB0
accent
#E97A3F
background
#FEF8FB
surface
#FDF0F6
border
#D5CBD0
text
#170B12
muted
#857C81

Preview Lab

Preview with #D840A3

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

Preview Lab → · Contrast checker → · Palette generator →

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