#D840B3#D840B3

#D840B3 is a light, highly saturated pink. Relative luminance 0.215; OKLCH L 62.8% C 0.221 H 339.3°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#D840B3
RGBrgb(216, 64, 179)
HSLhsl(315, 66%, 55%)
HSVhsv(315, 70%, 85%)
CMYKcmyk(0%, 70.4%, 17.1%, 15.3%)
CIE-LABlab(53.52, 69.63, -28.87)
CIE-LCHlch(53.52, 75.38, 337.48°)
OKLaboklab(62.85% 0.2069 -0.078)
OKLCHoklch(62.85% 0.221 339.3)
XYZxyz(38.2899, 21.5240, 44.7771)
Luminance0.2152 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D840B3 #40D865
analogous
#B140D8 #D840B3 #D84067
triadic
#D840B3 #B3D840 #40B3D8
tetradic
#D840B3 #D8B140 #40D865 #4067D8
square
#D840B3 #D8B140 #40D865 #4067D8
split-complementary
#D840B3 #67D840 #40D8B1
monochromatic
#831B6A #B62593 #D840B3 #E273C7 #EDA6DB

Accessibility & contrast

On white

3.96
#D840B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#D840B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D840B3
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D840B3#FFFFFF#000000##000000
##D840B31.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4971B6
Deuteranopia (green-blind)
#7A89AF
Tritanopia (blue-blind)
#E44674
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d840b3;
/* rgb */ color: rgb(216, 64, 179);
/* oklch */ color: oklch(62.8% 0.221 339.3);
Tailwind
colors: {
  custom: {
    50: '#e882ca',
    500: '#d840b3',
    950: '#000000',
  },
}
SCSS
$custom: #d840b3;
$custom-light: #e882ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d840b3",
  "rgb": {
    "r": 216,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 314.605,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.6285,
    "c": 0.2211,
    "h": 339.3
  },
  "luminance": 0.2152
}

Semantic roles & 50–950 ramp

primary
#D840B3
secondary
#9ADAA9
accent
#E9683F
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170B13
muted
#857C82

Preview Lab

Preview with #D840B3

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

Preview Lab → · Contrast checker → · Palette generator →

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