#AA2F9E#AA2F9E

#AA2F9E is a mid, vivid purple. Relative luminance 0.130; OKLCH L 53.3% C 0.199 H 332.3°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AA2F9E
RGBrgb(170, 47, 158)
HSLhsl(306, 57%, 43%)
HSVhsv(306, 72%, 67%)
CMYKcmyk(0%, 72.4%, 7.1%, 33.3%)
CIE-LABlab(42.84, 61.39, -33.72)
CIE-LCHlch(42.84, 70.04, 331.22°)
OKLaboklab(53.35% 0.1763 -0.0926)
OKLCHoklch(53.35% 0.199 332.3)
XYZxyz(23.7657, 13.0496, 33.6083)
Luminance0.1305 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F9E #2FAA3B
analogous
#792FAA #AA2F9E #AA2F60
triadic
#AA2F9E #9EAA2F #2F9EAA
tetradic
#AA2F9E #AA792F #2FAA3B #2F60AA
square
#AA2F9E #AA792F #2FAA3B #2F60AA
split-complementary
#AA2F9E #60AA2F #2FAA79
monochromatic
#4A1445 #7A2271 #AA2F9E #CD49C0 #DA79D1

Accessibility & contrast

On white

5.82
#AA2F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AA2F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F9E
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F9E#FFFFFF#000000##FFFFFF
##AA2F9E1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA1
Deuteranopia (green-blind)
#566B9B
Tritanopia (blue-blind)
#B13C63
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2f9e;
/* rgb */ color: rgb(170, 47, 158);
/* oklch */ color: oklch(53.3% 0.199 332.3);
Tailwind
colors: {
  custom: {
    50: '#c774bb',
    500: '#aa2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f9e;
$custom-light: #c774bb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f9e",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 305.854,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53349,
    "c": 0.19918,
    "h": 332.3
  },
  "luminance": 0.13048
}

Semantic roles & 50–950 ramp

primary
#AA2F9E
secondary
#72C27A
accent
#E05748
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AA2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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