#D840BA#D840BA

#D840BA is a light, highly saturated pink. Relative luminance 0.218; OKLCH L 63.2% C 0.226 H 337.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#D840BA
RGBrgb(216, 64, 186)
HSLhsl(312, 66%, 55%)
HSVhsv(312, 70%, 85%)
CMYKcmyk(0%, 70.4%, 13.9%, 15.3%)
CIE-LABlab(53.83, 70.61, -32.45)
CIE-LCHlch(53.83, 77.71, 335.32°)
OKLaboklab(63.18% 0.2078 -0.0882)
OKLCHoklch(63.18% 0.226 337)
XYZxyz(39.0159, 21.8144, 48.6006)
Luminance0.2181 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840BA #40D85E
analogous
#AA40D8 #D840BA #D8406E
triadic
#D840BA #BAD840 #40BAD8
tetradic
#D840BA #D8AA40 #40D85E #406ED8
square
#D840BA #D8AA40 #40D85E #406ED8
split-complementary
#D840BA #6ED840 #40D8AA
monochromatic
#831B6E #B62599 #D840BA #E273CC #EDA6DF

Accessibility & contrast

On white

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

On black

5.36
#D840BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840BA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840BA#FFFFFF#000000##000000
##D840BA1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4472BD
Deuteranopia (green-blind)
#7789B6
Tritanopia (blue-blind)
#E34978
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d840ba;
/* rgb */ color: rgb(216, 64, 186);
/* oklch */ color: oklch(63.2% 0.226 337.0);
Tailwind
colors: {
  custom: {
    50: '#e882cf',
    500: '#d840ba',
    950: '#000000',
  },
}
SCSS
$custom: #d840ba;
$custom-light: #e882cf;
$custom-dark: #000000;
JSON
{
  "hex": "#d840ba",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 311.842,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.63177,
    "c": 0.22573,
    "h": 337
  },
  "luminance": 0.21811
}

Semantic roles & 50–950 ramp

primary
#D840BA
secondary
#9ADAA7
accent
#E9603F
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#170B14
muted
#857C82

Preview Lab

Preview with #D840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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