#AA2F9A#AA2F9A

#AA2F9A is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.196 H 333.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AA2F9A
RGBrgb(170, 47, 154)
HSLhsl(308, 57%, 43%)
HSVhsv(308, 72%, 67%)
CMYKcmyk(0%, 72.4%, 9.4%, 33.3%)
CIE-LABlab(42.63, 60.76, -31.64)
CIE-LCHlch(42.63, 68.50, 332.50°)
OKLaboklab(53.14% 0.1761 -0.0866)
OKLCHoklch(53.14% 0.196 333.8)
XYZxyz(23.4270, 12.9142, 31.8244)
Luminance0.1291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F9A #2FAA3F
analogous
#7D2FAA #AA2F9A #AA2F5C
triadic
#AA2F9A #9AAA2F #2F9AAA
tetradic
#AA2F9A #AA7D2F #2FAA3F #2F5CAA
square
#AA2F9A #AA7D2F #2FAA3F #2F5CAA
split-complementary
#AA2F9A #5CAA2F #2FAA7D
monochromatic
#4A1443 #7A226F #AA2F9A #CD49BC #DA79CD

Accessibility & contrast

On white

5.86
#AA2F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AA2F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F9A
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F9A#FFFFFF#000000##FFFFFF
##AA2F9A1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599D
Deuteranopia (green-blind)
#586B97
Tritanopia (blue-blind)
#B23A61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2f9a;
/* rgb */ color: rgb(170, 47, 154);
/* oklch */ color: oklch(53.1% 0.196 333.8);
Tailwind
colors: {
  custom: {
    50: '#c773b8',
    500: '#aa2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f9a;
$custom-light: #c773b8;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f9a",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 307.805,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.19621,
    "h": 333.8
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#AA2F9A
secondary
#72C27D
accent
#E05C48
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #AA2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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