#AA2F97#AA2F97

#AA2F97 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 53.0% C 0.194 H 335.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AA2F97
RGBrgb(170, 47, 151)
HSLhsl(309, 57%, 43%)
HSVhsv(309, 72%, 67%)
CMYKcmyk(0%, 72.4%, 11.2%, 33.3%)
CIE-LABlab(42.48, 60.30, -30.06)
CIE-LCHlch(42.48, 67.38, 333.50°)
OKLaboklab(52.98% 0.1758 -0.0821)
OKLCHoklch(52.98% 0.194 335)
XYZxyz(23.1803, 12.8155, 30.5250)
Luminance0.1281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F97 #2FAA42
analogous
#7F2FAA #AA2F97 #AA2F5A
triadic
#AA2F97 #97AA2F #2F97AA
tetradic
#AA2F97 #AA7F2F #2FAA42 #2F5AAA
square
#AA2F97 #AA7F2F #2FAA42 #2F5AAA
split-complementary
#AA2F97 #5AAA2F #2FAA7F
monochromatic
#4A1442 #7A226C #AA2F97 #CD49B8 #DA79CB

Accessibility & contrast

On white

5.89
#AA2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AA2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F97
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F97#FFFFFF#000000##FFFFFF
##AA2F971.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599A
Deuteranopia (green-blind)
#5A6B94
Tritanopia (blue-blind)
#B2395F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa2f97;
/* rgb */ color: rgb(170, 47, 151);
/* oklch */ color: oklch(53.0% 0.194 335.0);
Tailwind
colors: {
  custom: {
    50: '#c773b6',
    500: '#aa2f97',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f97;
$custom-light: #c773b6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f97",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 309.268,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52979,
    "c": 0.19403,
    "h": 335
  },
  "luminance": 0.12813
}

Semantic roles & 50–950 ramp

primary
#AA2F97
secondary
#72C27F
accent
#E05F48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #AA2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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