#D842B7#D842B7

#D842B7 is a light, highly saturated pink. Relative luminance 0.219; OKLCH L 63.2% C 0.221 H 338.0°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#D842B7
RGBrgb(216, 66, 183)
HSLhsl(313, 66%, 55%)
HSVhsv(313, 69%, 85%)
CMYKcmyk(0%, 69.4%, 15.3%, 15.3%)
CIE-LABlab(53.94, 69.49, -30.54)
CIE-LCHlch(53.94, 75.91, 336.28°)
OKLaboklab(63.21% 0.2053 -0.0828)
OKLCHoklch(63.21% 0.221 338)
XYZxyz(38.8151, 21.9178, 46.9769)
Luminance0.2191 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D842B7 #42D863
analogous
#AE42D8 #D842B7 #D8426C
triadic
#D842B7 #B7D842 #42B7D8
tetradic
#D842B7 #D8AE42 #42D863 #426CD8
square
#D842B7 #D8AE42 #42D863 #426CD8
split-complementary
#D842B7 #6CD842 #42D8AE
monochromatic
#841B6D #B72697 #D842B7 #E275CA #EDA7DE

Accessibility & contrast

On white

3.90
#D842B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#D842B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D842B7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D842B7#FFFFFF#000000##000000
##D842B71.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4872BA
Deuteranopia (green-blind)
#7989B3
Tritanopia (blue-blind)
#E44977
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d842b7;
/* rgb */ color: rgb(216, 66, 183);
/* oklch */ color: oklch(63.2% 0.221 338.0);
Tailwind
colors: {
  custom: {
    50: '#e883cd',
    500: '#d842b7',
    950: '#000000',
  },
}
SCSS
$custom: #d842b7;
$custom-light: #e883cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d842b7",
  "rgb": {
    "r": 216,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 313.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.63213,
    "c": 0.2214,
    "h": 338
  },
  "luminance": 0.21914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D842B7

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

Preview Lab → · Contrast checker → · Palette generator →

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