#AA2F9C#AA2F9C

#AA2F9C is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.2% C 0.198 H 333.0°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AA2F9C
RGBrgb(170, 47, 156)
HSLhsl(307, 57%, 43%)
HSVhsv(307, 72%, 67%)
CMYKcmyk(0%, 72.4%, 8.2%, 33.3%)
CIE-LABlab(42.74, 61.07, -32.68)
CIE-LCHlch(42.74, 69.27, 331.85°)
OKLaboklab(53.24% 0.1762 -0.0896)
OKLCHoklch(53.24% 0.198 333)
XYZxyz(23.5950, 12.9813, 32.7090)
Luminance0.1298 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F9C #2FAA3D
analogous
#7A2FAA #AA2F9C #AA2F5F
triadic
#AA2F9C #9CAA2F #2F9CAA
tetradic
#AA2F9C #AA7A2F #2FAA3D #2F5FAA
square
#AA2F9C #AA7A2F #2FAA3D #2F5FAA
split-complementary
#AA2F9C #5FAA2F #2FAA7A
monochromatic
#4A1444 #7A2270 #AA2F9C #CD49BE #DA79CF

Accessibility & contrast

On white

5.84
#AA2F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#AA2F9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F9C
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F9C#FFFFFF#000000##FFFFFF
##AA2F9C1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5A9F
Deuteranopia (green-blind)
#576B99
Tritanopia (blue-blind)
#B23B62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2f9c;
/* rgb */ color: rgb(170, 47, 156);
/* oklch */ color: oklch(53.2% 0.198 333.0);
Tailwind
colors: {
  custom: {
    50: '#c774b9',
    500: '#aa2f9c',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f9c;
$custom-light: #c774b9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f9c",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 306.829,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53241,
    "c": 0.19768,
    "h": 333
  },
  "luminance": 0.12979
}

Semantic roles & 50–950 ramp

primary
#AA2F9C
secondary
#72C27C
accent
#E05948
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130911
muted
#827B80

Preview Lab

Preview with #AA2F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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