#AA2A8A#AA2A8A

#AA2A8A is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.9% C 0.191 H 340.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AA2A8A
RGBrgb(170, 42, 138)
HSLhsl(315, 60%, 42%)
HSVhsv(315, 75%, 67%)
CMYKcmyk(0%, 75.3%, 18.8%, 33.3%)
CIE-LABlab(41.28, 60.08, -24.05)
CIE-LCHlch(41.28, 64.71, 338.19°)
OKLaboklab(51.91% 0.1793 -0.0649)
OKLCHoklch(51.91% 0.191 340.1)
XYZxyz(21.9936, 12.0391, 25.2053)
Luminance0.1204 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2A8A #2AAA4A
analogous
#8A2AAA #AA2A8A #AA2A4A
triadic
#AA2A8A #8AAA2A #2A8AAA
tetradic
#AA2A8A #AA8A2A #2AAA4A #2A4AAA
square
#AA2A8A #AA8A2A #2AAA4A #2A4AAA
split-complementary
#AA2A8A #4AAA2A #2AAA8A
monochromatic
#48123A #791E62 #AA2A8A #D041AC #DC72C2

Accessibility & contrast

On white

6.16
#AA2A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#AA2A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2A8A
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2A8A#FFFFFF#000000##FFFFFF
##AA2A8A1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33548D
Deuteranopia (green-blind)
#5D6987
Tritanopia (blue-blind)
#B42E57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #aa2a8a;
/* rgb */ color: rgb(170, 42, 138);
/* oklch */ color: oklch(51.9% 0.191 340.1);
Tailwind
colors: {
  custom: {
    50: '#c771ac',
    500: '#aa2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #aa2a8a;
$custom-light: #c771ac;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2a8a",
  "rgb": {
    "r": 170,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 315,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.51906,
    "c": 0.19067,
    "h": 340.1
  },
  "luminance": 0.12037
}

Semantic roles & 50–950 ramp

primary
#AA2A8A
secondary
#6CC382
accent
#E46C44
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140810
muted
#827B7F

Preview Lab

Preview with #AA2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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