#D42CB6#D42CB6

#D42CB6 is a mid, highly saturated pink. Relative luminance 0.192; OKLCH L 60.9% C 0.241 H 336.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#D42CB6
RGBrgb(212, 44, 182)
HSLhsl(311, 66%, 50%)
HSVhsv(311, 79%, 83%)
CMYKcmyk(0%, 79.2%, 14.2%, 16.9%)
CIE-LABlab(50.90, 75.07, -34.76)
CIE-LCHlch(50.90, 82.73, 335.15°)
OKLaboklab(60.88% 0.2213 -0.0947)
OKLCHoklch(60.88% 0.241 336.8)
XYZxyz(36.4963, 19.1793, 46.0268)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CB6 #2CD44A
analogous
#9E2CD4 #D42CB6 #D42C62
triadic
#D42CB6 #B6D42C #2CB6D4
tetradic
#D42CB6 #D49E2C #2CD44A #2C62D4
square
#D42CB6 #D49E2C #2CD44A #2C62D4
split-complementary
#D42CB6 #62D42C #2CD49E
monochromatic
#6F175F #A2218B #D42CB6 #DE5FC8 #E992D9

Accessibility & contrast

On white

4.34
#D42CB6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#D42CB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CB6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CB6#FFFFFF#000000##000000
##D42CB61.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3169BA
Deuteranopia (green-blind)
#6E82B2
Tritanopia (blue-blind)
#DF3970
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42cb6;
/* rgb */ color: rgb(212, 44, 182);
/* oklch */ color: oklch(60.9% 0.241 336.8);
Tailwind
colors: {
  custom: {
    50: '#e679cc',
    500: '#d42cb6',
    950: '#000000',
  },
}
SCSS
$custom: #d42cb6;
$custom-light: #e679cc;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cb6",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 182
  },
  "hsl": {
    "h": 310.714,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60876,
    "c": 0.24077,
    "h": 336.8
  },
  "luminance": 0.19176
}

Semantic roles & 50–950 ramp

primary
#D42CB6
secondary
#88D396
accent
#E95D3F
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A13
muted
#847C82

Preview Lab

Preview with #D42CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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