#D42DB1#D42DB1

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

Color values

HEX#D42DB1
RGBrgb(212, 45, 177)
HSLhsl(313, 66%, 50%)
HSVhsv(313, 79%, 83%)
CMYKcmyk(0%, 78.8%, 16.5%, 16.9%)
CIE-LABlab(50.75, 74.15, -32.07)
CIE-LCHlch(50.75, 80.78, 336.61°)
OKLaboklab(60.69% 0.2202 -0.0871)
OKLCHoklch(60.69% 0.237 338.4)
XYZxyz(36.0265, 19.0517, 43.3665)
Luminance0.1905 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42DB1 #2DD450
analogous
#A42DD4 #D42DB1 #D42D5D
triadic
#D42DB1 #B1D42D #2DB1D4
tetradic
#D42DB1 #D4A42D #2DD450 #2D5DD4
square
#D42DB1 #D4A42D #2DD450 #2D5DD4
split-complementary
#D42DB1 #5DD42D #2DD4A4
monochromatic
#70175D #A32187 #D42DB1 #DE60C4 #E993D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D42DB1#FFFFFF#000000##000000
##D42DB11.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)
#3768B4
Deuteranopia (green-blind)
#7182AD
Tritanopia (blue-blind)
#E0376E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #d42db1;
/* rgb */ color: rgb(212, 45, 177);
/* oklch */ color: oklch(60.7% 0.237 338.4);
Tailwind
colors: {
  custom: {
    50: '#e679c8',
    500: '#d42db1',
    950: '#000000',
  },
}
SCSS
$custom: #d42db1;
$custom-light: #e679c8;
$custom-dark: #000000;
JSON
{
  "hex": "#d42db1",
  "rgb": {
    "r": 212,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 312.575,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60693,
    "c": 0.23675,
    "h": 338.4
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

primary
#D42DB1
secondary
#89D499
accent
#E9633F
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D42DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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