#A42A8D#A42A8D

#A42A8D is a mid, vivid pink. Relative luminance 0.115; OKLCH L 51.1% C 0.189 H 336.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#A42A8D
RGBrgb(164, 42, 141)
HSLhsl(311, 59%, 40%)
HSVhsv(311, 74%, 64%)
CMYKcmyk(0%, 74.4%, 14%, 35.7%)
CIE-LABlab(40.37, 59.05, -27.38)
CIE-LCHlch(40.37, 65.09, 335.12°)
OKLaboklab(51.1% 0.1738 -0.0745)
OKLCHoklch(51.1% 0.189 336.8)
XYZxyz(20.9459, 11.4735, 26.3056)
Luminance0.1147 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A8D #2AA441
analogous
#7E2AA4 #A42A8D #A42A50
triadic
#A42A8D #8DA42A #2A8DA4
tetradic
#A42A8D #A47E2A #2AA441 #2A50A4
square
#A42A8D #A47E2A #2AA441 #2A50A4
split-complementary
#A42A8D #50A42A #2AA47E
monochromatic
#431139 #731E63 #A42A8D #CD3EB2 #DA6EC6

Accessibility & contrast

On white

6.37
#A42A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#A42A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42A8D
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A8D#FFFFFF#000000##FFFFFF
##A42A8D1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5390
Deuteranopia (green-blind)
#57668A
Tritanopia (blue-blind)
#AD3258
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42a8d;
/* rgb */ color: rgb(164, 42, 141);
/* oklch */ color: oklch(51.1% 0.189 336.8);
Tailwind
colors: {
  custom: {
    50: '#c370ae',
    500: '#a42a8d',
    950: '#000000',
  },
}
SCSS
$custom: #a42a8d;
$custom-light: #c370ae;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a8d",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 311.311,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51095,
    "c": 0.18907,
    "h": 336.8
  },
  "luminance": 0.11472
}

Semantic roles & 50–950 ramp

primary
#A42A8D
secondary
#69C179
accent
#E26345
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A42A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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