#D842B5#D842B5

#D842B5 is a light, highly saturated pink. Relative luminance 0.218; OKLCH L 63.1% C 0.220 H 338.7°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#D842B5
RGBrgb(216, 66, 181)
HSLhsl(314, 66%, 55%)
HSVhsv(314, 69%, 85%)
CMYKcmyk(0%, 69.4%, 16.2%, 15.3%)
CIE-LABlab(53.85, 69.21, -29.52)
CIE-LCHlch(53.85, 75.24, 336.90°)
OKLaboklab(63.12% 0.2051 -0.0799)
OKLCHoklch(63.12% 0.22 338.7)
XYZxyz(38.6085, 21.8351, 45.8884)
Luminance0.2183 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842B5 #42D865
analogous
#B042D8 #D842B5 #D8426A
triadic
#D842B5 #B5D842 #42B5D8
tetradic
#D842B5 #D8B042 #42D865 #426AD8
square
#D842B5 #D8B042 #42D865 #426AD8
split-complementary
#D842B5 #6AD842 #42D8B0
monochromatic
#841B6C #B72695 #D842B5 #E275C9 #EDA7DD

Accessibility & contrast

On white

3.91
#D842B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#D842B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842B5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842B5#FFFFFF#000000##000000
##D842B51.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4972B8
Deuteranopia (green-blind)
#7A89B1
Tritanopia (blue-blind)
#E44876
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d842b5;
/* rgb */ color: rgb(216, 66, 181);
/* oklch */ color: oklch(63.1% 0.220 338.7);
Tailwind
colors: {
  custom: {
    50: '#e882cb',
    500: '#d842b5',
    950: '#000000',
  },
}
SCSS
$custom: #d842b5;
$custom-light: #e882cb;
$custom-dark: #000000;
JSON
{
  "hex": "#d842b5",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 314,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63121,
    "c": 0.22008,
    "h": 338.7
  },
  "luminance": 0.21832
}

Semantic roles & 50–950 ramp

primary
#D842B5
secondary
#9CDAAA
accent
#E9673F
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170C13
muted
#857D82

Preview Lab

Preview with #D842B5

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

Preview Lab → · Contrast checker → · Palette generator →

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