#D840B8#D840B8

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

Color values

HEX#D840B8
RGBrgb(216, 64, 184)
HSLhsl(313, 66%, 55%)
HSVhsv(313, 70%, 85%)
CMYKcmyk(0%, 70.4%, 14.8%, 15.3%)
CIE-LABlab(53.74, 70.32, -31.43)
CIE-LCHlch(53.74, 77.03, 335.92°)
OKLaboklab(63.08% 0.2075 -0.0853)
OKLCHoklch(63.08% 0.224 337.7)
XYZxyz(38.8048, 21.7300, 47.4887)
Luminance0.2173 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840B8 #40D860
analogous
#AC40D8 #D840B8 #D8406C
triadic
#D840B8 #B8D840 #40B8D8
tetradic
#D840B8 #D8AC40 #40D860 #406CD8
square
#D840B8 #D8AC40 #40D860 #406CD8
split-complementary
#D840B8 #6CD840 #40D8AC
monochromatic
#831B6D #B62597 #D840B8 #E273CB #EDA6DE

Accessibility & contrast

On white

3.93
#D840B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##D840B8#FFFFFF#000000##000000
##D840B81.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4571BB
Deuteranopia (green-blind)
#7889B4
Tritanopia (blue-blind)
#E44877
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d840b8;
/* rgb */ color: rgb(216, 64, 184);
/* oklch */ color: oklch(63.1% 0.224 337.7);
Tailwind
colors: {
  custom: {
    50: '#e882cd',
    500: '#d840b8',
    950: '#000000',
  },
}
SCSS
$custom: #d840b8;
$custom-light: #e882cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d840b8",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 312.632,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.63082,
    "c": 0.22439,
    "h": 337.7
  },
  "luminance": 0.21726
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D840B8

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

Preview Lab → · Contrast checker → · Palette generator →

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