#D840B4#D840B4

#D840B4 is a light, highly saturated pink. Relative luminance 0.216; OKLCH L 62.9% C 0.222 H 339.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#D840B4
RGBrgb(216, 64, 180)
HSLhsl(314, 66%, 55%)
HSVhsv(314, 70%, 85%)
CMYKcmyk(0%, 70.4%, 16.7%, 15.3%)
CIE-LABlab(53.56, 69.77, -29.38)
CIE-LCHlch(53.56, 75.70, 337.16°)
OKLaboklab(62.9% 0.207 -0.0795)
OKLCHoklch(62.9% 0.222 339)
XYZxyz(38.3914, 21.5646, 45.3116)
Luminance0.2156 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840B4 #40D864
analogous
#B040D8 #D840B4 #D84068
triadic
#D840B4 #B4D840 #40B4D8
tetradic
#D840B4 #D8B040 #40D864 #4068D8
square
#D840B4 #D8B040 #40D864 #4068D8
split-complementary
#D840B4 #68D840 #40D8B0
monochromatic
#831B6A #B62593 #D840B4 #E273C8 #EDA6DC

Accessibility & contrast

On white

3.95
#D840B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#D840B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840B4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840B4#FFFFFF#000000##000000
##D840B41.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4871B7
Deuteranopia (green-blind)
#7989B0
Tritanopia (blue-blind)
#E44675
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d840b4;
/* rgb */ color: rgb(216, 64, 180);
/* oklch */ color: oklch(62.9% 0.222 339.0);
Tailwind
colors: {
  custom: {
    50: '#e882ca',
    500: '#d840b4',
    950: '#000000',
  },
}
SCSS
$custom: #d840b4;
$custom-light: #e882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d840b4",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 314.211,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.62896,
    "c": 0.22175,
    "h": 339
  },
  "luminance": 0.21561
}

Semantic roles & 50–950 ramp

primary
#D840B4
secondary
#9ADAA9
accent
#E9673F
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D840B4

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

Preview Lab → · Contrast checker → · Palette generator →

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