#D842B9#D842B9

#D842B9 is a light, highly saturated pink. Relative luminance 0.220; OKLCH L 63.3% C 0.223 H 337.4°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#D842B9
RGBrgb(216, 66, 185)
HSLhsl(312, 66%, 55%)
HSVhsv(312, 69%, 85%)
CMYKcmyk(0%, 69.4%, 14.4%, 15.3%)
CIE-LABlab(54.03, 69.78, -31.56)
CIE-LCHlch(54.03, 76.58, 335.66°)
OKLaboklab(63.31% 0.2056 -0.0857)
OKLCHoklch(63.31% 0.223 337.4)
XYZxyz(39.0248, 22.0017, 48.0810)
Luminance0.2200 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842B9 #42D861
analogous
#AC42D8 #D842B9 #D8426E
triadic
#D842B9 #B9D842 #42B9D8
tetradic
#D842B9 #D8AC42 #42D861 #426ED8
square
#D842B9 #D8AC42 #42D861 #426ED8
split-complementary
#D842B9 #6ED842 #42D8AC
monochromatic
#841B6F #B72699 #D842B9 #E275CC #EDA7DF

Accessibility & contrast

On white

3.89
#D842B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#D842B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842B9
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842B9#FFFFFF#000000##000000
##D842B91.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4772BC
Deuteranopia (green-blind)
#7889B5
Tritanopia (blue-blind)
#E34A78
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d842b9;
/* rgb */ color: rgb(216, 66, 185);
/* oklch */ color: oklch(63.3% 0.223 337.4);
Tailwind
colors: {
  custom: {
    50: '#e883ce',
    500: '#d842b9',
    950: '#000000',
  },
}
SCSS
$custom: #d842b9;
$custom-light: #e883ce;
$custom-dark: #000000;
JSON
{
  "hex": "#d842b9",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 312.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63307,
    "c": 0.22274,
    "h": 337.4
  },
  "luminance": 0.21998
}

Semantic roles & 50–950 ramp

primary
#D842B9
secondary
#9CDAA9
accent
#E9623F
background
#FEF8FC
surface
#FDF0F9
border
#D5CBD2
text
#170C13
muted
#857D82

Preview Lab

Preview with #D842B9

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

Preview Lab → · Contrast checker → · Palette generator →

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