#D42CB1#D42CB1

#D42CB1 is a mid, highly saturated pink. Relative luminance 0.190; OKLCH L 60.6% C 0.238 H 338.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#D42CB1
RGBrgb(212, 44, 177)
HSLhsl(313, 66%, 50%)
HSVhsv(313, 79%, 83%)
CMYKcmyk(0%, 79.2%, 16.5%, 16.9%)
CIE-LABlab(50.66, 74.40, -32.21)
CIE-LCHlch(50.66, 81.07, 336.59°)
OKLaboklab(60.63% 0.2209 -0.0874)
OKLCHoklch(60.63% 0.238 338.4)
XYZxyz(35.9888, 18.9763, 43.3539)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CB1 #2CD44F
analogous
#A32CD4 #D42CB1 #D42C5D
triadic
#D42CB1 #B1D42C #2CB1D4
tetradic
#D42CB1 #D4A32C #2CD44F #2C5DD4
square
#D42CB1 #D4A32C #2CD44F #2C5DD4
split-complementary
#D42CB1 #5DD42C #2CD4A3
monochromatic
#6F175D #A22187 #D42CB1 #DE5FC4 #E992D7

Accessibility & contrast

On white

4.38
#D42CB1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#D42CB1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CB1
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CB1#FFFFFF#000000##000000
##D42CB11.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3668B4
Deuteranopia (green-blind)
#7082AD
Tritanopia (blue-blind)
#E0366D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42cb1;
/* rgb */ color: rgb(212, 44, 177);
/* oklch */ color: oklch(60.6% 0.238 338.4);
Tailwind
colors: {
  custom: {
    50: '#e679c8',
    500: '#d42cb1',
    950: '#000000',
  },
}
SCSS
$custom: #d42cb1;
$custom-light: #e679c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cb1",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 312.5,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60629,
    "c": 0.23761,
    "h": 338.4
  },
  "luminance": 0.18973
}

Semantic roles & 50–950 ramp

primary
#D42CB1
secondary
#88D398
accent
#E9623F
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D42CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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