#D840B9#D840B9

#D840B9 is a light, highly saturated pink. Relative luminance 0.218; OKLCH L 63.1% C 0.225 H 337.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#D840B9
RGBrgb(216, 64, 185)
HSLhsl(312, 66%, 55%)
HSVhsv(312, 70%, 85%)
CMYKcmyk(0%, 70.4%, 14.4%, 15.3%)
CIE-LABlab(53.78, 70.46, -31.94)
CIE-LCHlch(53.78, 77.37, 335.62°)
OKLaboklab(63.13% 0.2077 -0.0868)
OKLCHoklch(63.13% 0.225 337.3)
XYZxyz(38.9100, 21.7721, 48.0427)
Luminance0.2177 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840B9 #40D85F
analogous
#AB40D8 #D840B9 #D8406D
triadic
#D840B9 #B9D840 #40B9D8
tetradic
#D840B9 #D8AB40 #40D85F #406DD8
square
#D840B9 #D8AB40 #40D85F #406DD8
split-complementary
#D840B9 #6DD840 #40D8AB
monochromatic
#831B6E #B62598 #D840B9 #E273CC #EDA6DE

Accessibility & contrast

On white

3.92
#D840B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#D840B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840B9
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840B9#FFFFFF#000000##000000
##D840B91.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4572BC
Deuteranopia (green-blind)
#7789B5
Tritanopia (blue-blind)
#E34877
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d840b9;
/* rgb */ color: rgb(216, 64, 185);
/* oklch */ color: oklch(63.1% 0.225 337.3);
Tailwind
colors: {
  custom: {
    50: '#e882ce',
    500: '#d840b9',
    950: '#000000',
  },
}
SCSS
$custom: #d840b9;
$custom-light: #e882ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d840b9",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 312.237,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.6313,
    "c": 0.22506,
    "h": 337.3
  },
  "luminance": 0.21769
}

Semantic roles & 50–950 ramp

primary
#D840B9
secondary
#9ADAA7
accent
#E9613F
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#170B13
muted
#857C82

Preview Lab

Preview with #D840B9

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

Preview Lab → · Contrast checker → · Palette generator →

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