#AA2F87#AA2F87

#AA2F87 is a mid, vivid pink. Relative luminance 0.123; OKLCH L 52.2% C 0.183 H 341.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AA2F87
RGBrgb(170, 47, 135)
HSLhsl(317, 57%, 43%)
HSVhsv(317, 72%, 67%)
CMYKcmyk(0%, 72.4%, 20.6%, 33.3%)
CIE-LABlab(41.74, 57.98, -21.50)
CIE-LCHlch(41.74, 61.84, 339.65°)
OKLaboklab(52.19% 0.1737 -0.0578)
OKLCHoklch(52.19% 0.183 341.6)
XYZxyz(21.9679, 12.3305, 24.1401)
Luminance0.1233 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F87 #2FAA52
analogous
#8F2FAA #AA2F87 #AA2F4A
triadic
#AA2F87 #87AA2F #2F87AA
tetradic
#AA2F87 #AA8F2F #2FAA52 #2F4AAA
square
#AA2F87 #AA8F2F #2FAA52 #2F4AAA
split-complementary
#AA2F87 #4AAA2F #2FAA8F
monochromatic
#4A143B #7A2261 #AA2F87 #CD49A7 #DA79BF

Accessibility & contrast

On white

6.06
#AA2F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#AA2F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F87
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F87#FFFFFF#000000##FFFFFF
##AA2F871.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395689
Deuteranopia (green-blind)
#606A84
Tritanopia (blue-blind)
#B43157
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa2f87;
/* rgb */ color: rgb(170, 47, 135);
/* oklch */ color: oklch(52.2% 0.183 341.6);
Tailwind
colors: {
  custom: {
    50: '#c773aa',
    500: '#aa2f87',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f87;
$custom-light: #c773aa;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f87",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 317.073,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52194,
    "c": 0.18305,
    "h": 341.6
  },
  "luminance": 0.12328
}

Semantic roles & 50–950 ramp

primary
#AA2F87
secondary
#72C289
accent
#E07348
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AA2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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