#AA2F9B#AA2F9B

#AA2F9B is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.2% C 0.197 H 333.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#AA2F9B
RGBrgb(170, 47, 155)
HSLhsl(307, 57%, 43%)
HSVhsv(307, 72%, 67%)
CMYKcmyk(0%, 72.4%, 8.8%, 33.3%)
CIE-LABlab(42.68, 60.92, -32.16)
CIE-LCHlch(42.68, 68.88, 332.17°)
OKLaboklab(53.19% 0.1761 -0.0881)
OKLCHoklch(53.19% 0.197 333.4)
XYZxyz(23.5106, 12.9476, 32.2649)
Luminance0.1295 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2F9B #2FAA3E
analogous
#7B2FAA #AA2F9B #AA2F5E
triadic
#AA2F9B #9BAA2F #2F9BAA
tetradic
#AA2F9B #AA7B2F #2FAA3E #2F5EAA
square
#AA2F9B #AA7B2F #2FAA3E #2F5EAA
split-complementary
#AA2F9B #5EAA2F #2FAA7B
monochromatic
#4A1444 #7A226F #AA2F9B #CD49BD #DA79CE

Accessibility & contrast

On white

5.85
#AA2F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AA2F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2F9B
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2F9B#FFFFFF#000000##FFFFFF
##AA2F9B1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B599E
Deuteranopia (green-blind)
#586B98
Tritanopia (blue-blind)
#B23B62
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #aa2f9b;
/* rgb */ color: rgb(170, 47, 155);
/* oklch */ color: oklch(53.2% 0.197 333.4);
Tailwind
colors: {
  custom: {
    50: '#c774b9',
    500: '#aa2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #aa2f9b;
$custom-light: #c774b9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2f9b",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 307.317,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53188,
    "c": 0.19694,
    "h": 333.4
  },
  "luminance": 0.12946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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