#AA2F96#AA2F96

#AA2F96 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.9% C 0.193 H 335.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#AA2F96
RGBrgb(170, 47, 150)
HSLhsl(310, 57%, 43%)
HSVhsv(310, 72%, 67%)
CMYKcmyk(0%, 72.4%, 11.8%, 33.3%)
CIE-LABlab(42.43, 60.15, -29.54)
CIE-LCHlch(42.43, 67.01, 333.85°)
OKLaboklab(52.93% 0.1757 -0.0806)
OKLCHoklch(52.93% 0.193 335.4)
XYZxyz(23.0994, 12.7831, 30.0991)
Luminance0.1278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F96 #2FAA43
analogous
#802FAA #AA2F96 #AA2F59
triadic
#AA2F96 #96AA2F #2F96AA
tetradic
#AA2F96 #AA802F #2FAA43 #2F59AA
square
#AA2F96 #AA802F #2FAA43 #2F59AA
split-complementary
#AA2F96 #59AA2F #2FAA80
monochromatic
#4A1441 #7A226C #AA2F96 #CD49B7 #DA79CA

Accessibility & contrast

On white

5.91
#AA2F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AA2F96
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F96#FFFFFF#000000##FFFFFF
##AA2F961.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5899
Deuteranopia (green-blind)
#5A6B93
Tritanopia (blue-blind)
#B2385F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #aa2f96;
/* rgb */ color: rgb(170, 47, 150);
/* oklch */ color: oklch(52.9% 0.193 335.4);
Tailwind
colors: {
  custom: {
    50: '#c773b5',
    500: '#aa2f96',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f96;
$custom-light: #c773b5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f96",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 309.756,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.52927,
    "c": 0.19331,
    "h": 335.4
  },
  "luminance": 0.12781
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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