#D842B2#D842B2

#D842B2 is a light, highly saturated pink. Relative luminance 0.217; OKLCH L 63.0% C 0.218 H 339.7°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#D842B2
RGBrgb(216, 66, 178)
HSLhsl(315, 66%, 55%)
HSVhsv(315, 69%, 85%)
CMYKcmyk(0%, 69.4%, 17.6%, 15.3%)
CIE-LABlab(53.72, 68.80, -27.97)
CIE-LCHlch(53.72, 74.27, 337.87°)
OKLaboklab(62.98% 0.2046 -0.0755)
OKLCHoklch(62.98% 0.218 339.7)
XYZxyz(38.3040, 21.7133, 44.2846)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842B2 #42D868
analogous
#B342D8 #D842B2 #D84267
triadic
#D842B2 #B2D842 #42B2D8
tetradic
#D842B2 #D8B342 #42D868 #4267D8
square
#D842B2 #D8B342 #42D868 #4267D8
split-complementary
#D842B2 #67D842 #42D8B3
monochromatic
#841B6A #B72692 #D842B2 #E275C7 #EDA7DB

Accessibility & contrast

On white

3.93
#D842B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D842B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842B2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842B2#FFFFFF#000000##000000
##D842B21.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B71B5
Deuteranopia (green-blind)
#7B89AE
Tritanopia (blue-blind)
#E44774
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d842b2;
/* rgb */ color: rgb(216, 66, 178);
/* oklch */ color: oklch(63.0% 0.218 339.7);
Tailwind
colors: {
  custom: {
    50: '#e882c9',
    500: '#d842b2',
    950: '#000000',
  },
}
SCSS
$custom: #d842b2;
$custom-light: #e882c9;
$custom-dark: #000000;
JSON
{
  "hex": "#d842b2",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 315.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.62984,
    "c": 0.21811,
    "h": 339.7
  },
  "luminance": 0.2171
}

Semantic roles & 50–950 ramp

primary
#D842B2
secondary
#9CDAAB
accent
#E96A3F
background
#FEF8FC
surface
#FDF0F8
border
#D5CBD1
text
#170C13
muted
#857D82

Preview Lab

Preview with #D842B2

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

Preview Lab → · Contrast checker → · Palette generator →

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