#A42A8B#A42A8B

#A42A8B is a mid, vivid pink. Relative luminance 0.114; OKLCH L 51.0% C 0.188 H 337.6°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#A42A8B
RGBrgb(164, 42, 139)
HSLhsl(312, 59%, 40%)
HSVhsv(312, 74%, 64%)
CMYKcmyk(0%, 74.4%, 15.2%, 35.7%)
CIE-LABlab(40.27, 58.76, -26.31)
CIE-LCHlch(40.27, 64.38, 335.88°)
OKLaboklab(50.99% 0.1735 -0.0715)
OKLCHoklch(50.99% 0.188 337.6)
XYZxyz(20.7984, 11.4145, 25.5289)
Luminance0.1141 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42A8B #2AA443
analogous
#802AA4 #A42A8B #A42A4E
triadic
#A42A8B #8BA42A #2A8BA4
tetradic
#A42A8B #A4802A #2AA443 #2A4EA4
square
#A42A8B #A4802A #2AA443 #2A4EA4
split-complementary
#A42A8B #4EA42A #2AA480
monochromatic
#431138 #731E62 #A42A8B #CD3EB0 #DA6EC4

Accessibility & contrast

On white

6.40
#A42A8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#A42A8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42A8B
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42A8B#FFFFFF#000000##FFFFFF
##A42A8B1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F538E
Deuteranopia (green-blind)
#586688
Tritanopia (blue-blind)
#AD3157
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #a42a8b;
/* rgb */ color: rgb(164, 42, 139);
/* oklch */ color: oklch(51.0% 0.188 337.6);
Tailwind
colors: {
  custom: {
    50: '#c370ad',
    500: '#a42a8b',
    950: '#000000',
  },
}
SCSS
$custom: #a42a8b;
$custom-light: #c370ad;
$custom-dark: #000000;
JSON
{
  "hex": "#a42a8b",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 312.295,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.50993,
    "c": 0.18768,
    "h": 337.6
  },
  "luminance": 0.11413
}

Semantic roles & 50–950 ramp

primary
#A42A8B
secondary
#69C17B
accent
#E26645
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #A42A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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