#D42CB5#D42CB5

#D42CB5 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.8% C 0.240 H 337.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#D42CB5
RGBrgb(212, 44, 181)
HSLhsl(311, 66%, 50%)
HSVhsv(311, 79%, 83%)
CMYKcmyk(0%, 79.2%, 14.6%, 16.9%)
CIE-LABlab(50.85, 74.94, -34.25)
CIE-LCHlch(50.85, 82.39, 335.44°)
OKLaboklab(60.83% 0.2213 -0.0933)
OKLCHoklch(60.83% 0.24 337.1)
XYZxyz(36.3933, 19.1381, 45.4845)
Luminance0.1913 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CB5 #2CD44B
analogous
#9F2CD4 #D42CB5 #D42C61
triadic
#D42CB5 #B5D42C #2CB5D4
tetradic
#D42CB5 #D49F2C #2CD44B #2C61D4
square
#D42CB5 #D49F2C #2CD44B #2C61D4
split-complementary
#D42CB5 #61D42C #2CD49F
monochromatic
#6F175F #A2218A #D42CB5 #DE5FC7 #E992D9

Accessibility & contrast

On white

4.35
#D42CB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#D42CB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CB5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CB5#FFFFFF#000000##000000
##D42CB51.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3269B9
Deuteranopia (green-blind)
#6F82B1
Tritanopia (blue-blind)
#E03870
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42cb5;
/* rgb */ color: rgb(212, 44, 181);
/* oklch */ color: oklch(60.8% 0.240 337.1);
Tailwind
colors: {
  custom: {
    50: '#e679cb',
    500: '#d42cb5',
    950: '#000000',
  },
}
SCSS
$custom: #d42cb5;
$custom-light: #e679cb;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cb5",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 311.071,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60826,
    "c": 0.24014,
    "h": 337.1
  },
  "luminance": 0.19135
}

Semantic roles & 50–950 ramp

primary
#D42CB5
secondary
#88D396
accent
#E95E3F
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #D42CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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