#D840B7#D840B7

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

Color values

HEX#D840B7
RGBrgb(216, 64, 183)
HSLhsl(313, 66%, 55%)
HSVhsv(313, 70%, 85%)
CMYKcmyk(0%, 70.4%, 15.3%, 15.3%)
CIE-LABlab(53.69, 70.18, -30.92)
CIE-LCHlch(53.69, 76.69, 336.22°)
OKLaboklab(63.04% 0.2074 -0.0839)
OKLCHoklch(63.04% 0.224 338)
XYZxyz(38.7003, 21.6882, 46.9386)
Luminance0.2168 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840B7 #40D861
analogous
#AD40D8 #D840B7 #D8406B
triadic
#D840B7 #B7D840 #40B7D8
tetradic
#D840B7 #D8AD40 #40D861 #406BD8
square
#D840B7 #D8AD40 #40D861 #406BD8
split-complementary
#D840B7 #6BD840 #40D8AD
monochromatic
#831B6C #B62596 #D840B7 #E273CA #EDA6DD

Accessibility & contrast

On white

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

On black

5.34
#D840B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840B7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840B7#FFFFFF#000000##000000
##D840B71.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4671BA
Deuteranopia (green-blind)
#7889B3
Tritanopia (blue-blind)
#E44776
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d840b7;
/* rgb */ color: rgb(216, 64, 183);
/* oklch */ color: oklch(63.0% 0.224 338.0);
Tailwind
colors: {
  custom: {
    50: '#e882cd',
    500: '#d840b7',
    950: '#000000',
  },
}
SCSS
$custom: #d840b7;
$custom-light: #e882cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d840b7",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 313.026,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.63035,
    "c": 0.22372,
    "h": 338
  },
  "luminance": 0.21685
}

Semantic roles & 50–950 ramp

primary
#D840B7
secondary
#9ADAA8
accent
#E9643F
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#170B13
muted
#857C82

Preview Lab

Preview with #D840B7

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

Preview Lab → · Contrast checker → · Palette generator →

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