#D42FA1#D42FA1

#D42FA1 is a mid, highly saturated pink. Relative luminance 0.186; OKLCH L 60.1% C 0.225 H 343.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#D42FA1
RGBrgb(212, 47, 161)
HSLhsl(319, 66%, 51%)
HSVhsv(319, 78%, 83%)
CMYKcmyk(0%, 77.8%, 24.1%, 16.9%)
CIE-LABlab(50.22, 71.57, -23.45)
CIE-LCHlch(50.22, 75.31, 341.86°)
OKLaboklab(60.09% 0.2165 -0.0627)
OKLCHoklch(60.09% 0.225 343.9)
XYZxyz(34.6023, 18.6071, 35.4806)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42FA1 #2FD462
analogous
#B42FD4 #D42FA1 #D42F4F
triadic
#D42FA1 #A1D42F #2FA1D4
tetradic
#D42FA1 #D4B42F #2FD462 #2F4FD4
square
#D42FA1 #D4B42F #2FD462 #2F4FD4
split-complementary
#D42FA1 #4FD42F #2FD4B4
monochromatic
#711755 #A4227C #D42FA1 #DE62B8 #E994CF

Accessibility & contrast

On white

4.45
#D42FA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#D42FA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42FA1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42FA1#FFFFFF#000000##000000
##D42FA11.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4466A4
Deuteranopia (green-blind)
#77819D
Tritanopia (blue-blind)
#E22E65
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #d42fa1;
/* rgb */ color: rgb(212, 47, 161);
/* oklch */ color: oklch(60.1% 0.225 343.9);
Tailwind
colors: {
  custom: {
    50: '#e679bd',
    500: '#d42fa1',
    950: '#000000',
  },
}
SCSS
$custom: #d42fa1;
$custom-light: #e679bd;
$custom-dark: #000000;
JSON
{
  "hex": "#d42fa1",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 318.545,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60085,
    "c": 0.22535,
    "h": 343.9
  },
  "luminance": 0.18603
}

Semantic roles & 50–950 ramp

primary
#D42FA1
secondary
#8BD4A1
accent
#E9743F
background
#FEF8FB
surface
#FDEFF6
border
#D5CAD0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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