#D42AAF#D42AAF

#D42AAF is a mid, highly saturated pink. Relative luminance 0.187; OKLCH L 60.4% C 0.238 H 339.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#D42AAF
RGBrgb(212, 42, 175)
HSLhsl(313, 67%, 50%)
HSVhsv(313, 80%, 83%)
CMYKcmyk(0%, 80.2%, 17.5%, 16.9%)
CIE-LABlab(50.40, 74.63, -31.44)
CIE-LCHlch(50.40, 80.98, 337.15°)
OKLaboklab(60.41% 0.2222 -0.0853)
OKLCHoklch(60.41% 0.238 339)
XYZxyz(35.7182, 18.7517, 42.2875)
Luminance0.1875 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42AAF #2AD44F
analogous
#A42AD4 #D42AAF #D42A5A
triadic
#D42AAF #AFD42A #2AAFD4
tetradic
#D42AAF #D4A42A #2AD44F #2A5AD4
square
#D42AAF #D4A42A #2AD44F #2A5AD4
split-complementary
#D42AAF #5AD42A #2AD4A4
monochromatic
#6E165B #A12085 #D42AAF #DF5CC2 #E98FD5

Accessibility & contrast

On white

4.42
#D42AAF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#D42AAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42AAF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42AAF#FFFFFF#000000##000000
##D42AAF1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#7181AB
Tritanopia (blue-blind)
#E0336C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #d42aaf;
/* rgb */ color: rgb(212, 42, 175);
/* oklch */ color: oklch(60.4% 0.238 339.0);
Tailwind
colors: {
  custom: {
    50: '#e678c7',
    500: '#d42aaf',
    950: '#000000',
  },
}
SCSS
$custom: #d42aaf;
$custom-light: #e678c7;
$custom-dark: #000000;
JSON
{
  "hex": "#d42aaf",
  "rgb": {
    "r": 212,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 313.059,
    "s": 66.929,
    "l": 49.804
  },
  "oklch": {
    "l": 0.60409,
    "c": 0.23801,
    "h": 339
  },
  "luminance": 0.18748
}

Semantic roles & 50–950 ramp

primary
#D42AAF
secondary
#86D397
accent
#EA633E
background
#FEF7FC
surface
#FDEEF8
border
#D5C9D1
text
#170A13
muted
#857C82

Preview Lab

Preview with #D42AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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