#D42CB3#D42CB3

#D42CB3 is a mid, highly saturated pink. Relative luminance 0.191; OKLCH L 60.7% C 0.239 H 337.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#D42CB3
RGBrgb(212, 44, 179)
HSLhsl(312, 66%, 50%)
HSVhsv(312, 79%, 83%)
CMYKcmyk(0%, 79.2%, 15.6%, 16.9%)
CIE-LABlab(50.75, 74.67, -33.23)
CIE-LCHlch(50.75, 81.73, 336.01°)
OKLaboklab(60.73% 0.2211 -0.0904)
OKLCHoklch(60.73% 0.239 337.8)
XYZxyz(36.1896, 19.0566, 44.4115)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42CB3 #2CD44D
analogous
#A12CD4 #D42CB3 #D42C5F
triadic
#D42CB3 #B3D42C #2CB3D4
tetradic
#D42CB3 #D4A12C #2CD44D #2C5FD4
square
#D42CB3 #D4A12C #2CD44D #2C5FD4
split-complementary
#D42CB3 #5FD42C #2CD4A1
monochromatic
#6F175E #A22189 #D42CB3 #DE5FC5 #E992D8

Accessibility & contrast

On white

4.37
#D42CB3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#D42CB3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42CB3
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42CB3#FFFFFF#000000##000000
##D42CB31.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3469B6
Deuteranopia (green-blind)
#7082AF
Tritanopia (blue-blind)
#E0376F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42cb3;
/* rgb */ color: rgb(212, 44, 179);
/* oklch */ color: oklch(60.7% 0.239 337.8);
Tailwind
colors: {
  custom: {
    50: '#e679ca',
    500: '#d42cb3',
    950: '#000000',
  },
}
SCSS
$custom: #d42cb3;
$custom-light: #e679ca;
$custom-dark: #000000;
JSON
{
  "hex": "#d42cb3",
  "rgb": {
    "r": 212,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 311.786,
    "s": 66.142,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60727,
    "c": 0.23886,
    "h": 337.8
  },
  "luminance": 0.19053
}

Semantic roles & 50–950 ramp

primary
#D42CB3
secondary
#88D397
accent
#E9603F
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D42CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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