#D840BC#D840BC

#D840BC is a light, highly saturated pink. Relative luminance 0.219; OKLCH L 63.3% C 0.227 H 336.3°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#D840BC
RGBrgb(216, 64, 188)
HSLhsl(311, 66%, 55%)
HSVhsv(311, 70%, 85%)
CMYKcmyk(0%, 70.4%, 13%, 15.3%)
CIE-LABlab(53.92, 70.89, -33.47)
CIE-LCHlch(53.92, 78.39, 334.73°)
OKLaboklab(63.27% 0.208 -0.0911)
OKLCHoklch(63.27% 0.227 336.3)
XYZxyz(39.2300, 21.9001, 49.7282)
Luminance0.2190 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840BC #40D85C
analogous
#A840D8 #D840BC #D84070
triadic
#D840BC #BCD840 #40BCD8
tetradic
#D840BC #D8A840 #40D85C #4070D8
square
#D840BC #D8A840 #40D85C #4070D8
split-complementary
#D840BC #70D840 #40D8A8
monochromatic
#831B70 #B6259B #D840BC #E273CE #EDA6E0

Accessibility & contrast

On white

3.90
#D840BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#D840BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840BC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840BC#FFFFFF#000000##000000
##D840BC1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4372BF
Deuteranopia (green-blind)
#7689B8
Tritanopia (blue-blind)
#E34A79
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d840bc;
/* rgb */ color: rgb(216, 64, 188);
/* oklch */ color: oklch(63.3% 0.227 336.3);
Tailwind
colors: {
  custom: {
    50: '#e882d0',
    500: '#d840bc',
    950: '#000000',
  },
}
SCSS
$custom: #d840bc;
$custom-light: #e882d0;
$custom-dark: #000000;
JSON
{
  "hex": "#d840bc",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 311.053,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.63273,
    "c": 0.22708,
    "h": 336.3
  },
  "luminance": 0.21897
}

Semantic roles & 50–950 ramp

primary
#D840BC
secondary
#9ADAA6
accent
#E95E3F
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#170C14
muted
#857D82

Preview Lab

Preview with #D840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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