#D42FA3#D42FA3

#D42FA3 is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 60.2% C 0.227 H 343.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#D42FA3
RGBrgb(212, 47, 163)
HSLhsl(318, 66%, 51%)
HSVhsv(318, 78%, 83%)
CMYKcmyk(0%, 77.8%, 23.1%, 16.9%)
CIE-LABlab(50.31, 71.82, -24.50)
CIE-LCHlch(50.31, 75.88, 341.16°)
OKLaboklab(60.17% 0.2168 -0.0656)
OKLCHoklch(60.17% 0.227 343.2)
XYZxyz(34.7801, 18.6782, 36.4168)
Luminance0.1867 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42FA3 #2FD460
analogous
#B22FD4 #D42FA3 #D42F50
triadic
#D42FA3 #A3D42F #2FA3D4
tetradic
#D42FA3 #D4B22F #2FD460 #2F50D4
square
#D42FA3 #D4B22F #2FD460 #2F50D4
split-complementary
#D42FA3 #50D42F #2FD4B2
monochromatic
#711757 #A4227D #D42FA3 #DE62B9 #E994D0

Accessibility & contrast

On white

4.44
#D42FA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#D42FA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42FA3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42FA3#FFFFFF#000000##000000
##D42FA31.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4266A6
Deuteranopia (green-blind)
#76819F
Tritanopia (blue-blind)
#E22F66
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d42fa3;
/* rgb */ color: rgb(212, 47, 163);
/* oklch */ color: oklch(60.2% 0.227 343.2);
Tailwind
colors: {
  custom: {
    50: '#e67abe',
    500: '#d42fa3',
    950: '#000000',
  },
}
SCSS
$custom: #d42fa3;
$custom-light: #e67abe;
$custom-dark: #000000;
JSON
{
  "hex": "#d42fa3",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 317.818,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60173,
    "c": 0.2265,
    "h": 343.2
  },
  "luminance": 0.18674
}

Semantic roles & 50–950 ramp

primary
#D42FA3
secondary
#8BD4A1
accent
#E9713F
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#170A12
muted
#857C81

Preview Lab

Preview with #D42FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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