#D42CB7#D42CB7

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

Color values

HEX#D42CB7
RGBrgb(212, 44, 183)
HSLhsl(310, 66%, 50%)
HSVhsv(310, 79%, 83%)
CMYKcmyk(0%, 79.2%, 13.7%, 16.9%)
CIE-LABlab(50.94, 75.21, -35.27)
CIE-LCHlch(50.94, 83.07, 334.88°)
OKLaboklab(60.93% 0.2214 -0.0962)
OKLCHoklch(60.93% 0.241 336.5)
XYZxyz(36.6000, 19.2208, 46.5730)
Luminance0.1922 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CB7 #2CD449
analogous
#9D2CD4 #D42CB7 #D42C63
triadic
#D42CB7 #B7D42C #2CB7D4
tetradic
#D42CB7 #D49D2C #2CD449 #2C63D4
square
#D42CB7 #D49D2C #2CD449 #2C63D4
split-complementary
#D42CB7 #63D42C #2CD49D
monochromatic
#6F1760 #A2218C #D42CB7 #DE5FC8 #E992DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D42CB7#FFFFFF#000000##000000
##D42CB71.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)
#3069BB
Deuteranopia (green-blind)
#6E82B3
Tritanopia (blue-blind)
#DF3A71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42cb7;
/* rgb */ color: rgb(212, 44, 183);
/* oklch */ color: oklch(60.9% 0.241 336.5);
Tailwind
colors: {
  custom: {
    50: '#e679cd',
    500: '#d42cb7',
    950: '#000000',
  },
}
SCSS
$custom: #d42cb7;
$custom-light: #e679cd;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cb7",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 310.357,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60926,
    "c": 0.24141,
    "h": 336.5
  },
  "luminance": 0.19217
}

Semantic roles & 50–950 ramp

primary
#D42CB7
secondary
#88D395
accent
#E95C3F
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160A13
muted
#847C82

Preview Lab

Preview with #D42CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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