#AA2FA8#AA2FA8

#AA2FA8 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.207 H 328.7°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#AA2FA8
RGBrgb(170, 47, 168)
HSLhsl(301, 57%, 43%)
HSVhsv(301, 72%, 67%)
CMYKcmyk(0%, 72.4%, 1.2%, 33.3%)
CIE-LABlab(43.37, 63.00, -38.85)
CIE-LCHlch(43.37, 74.01, 328.34°)
OKLaboklab(53.91% 0.1767 -0.1075)
OKLCHoklch(53.91% 0.207 328.7)
XYZxyz(24.6617, 13.4080, 38.3273)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2FA8 #2FAA31
analogous
#6F2FAA #AA2FA8 #AA2F6A
triadic
#AA2FA8 #A8AA2F #2FA8AA
tetradic
#AA2FA8 #AA6F2F #2FAA31 #2F6AAA
square
#AA2FA8 #AA6F2F #2FAA31 #2F6AAA
split-complementary
#AA2FA8 #6AAA2F #2FAA6F
monochromatic
#4A1449 #7A2279 #AA2FA8 #CD49CB #DA79D8

Accessibility & contrast

On white

5.70
#AA2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AA2FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2FA8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2FA8#FFFFFF#000000##FFFFFF
##AA2FA81.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5CAB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#B04169
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa2fa8;
/* rgb */ color: rgb(170, 47, 168);
/* oklch */ color: oklch(53.9% 0.207 328.7);
Tailwind
colors: {
  custom: {
    50: '#c774c2',
    500: '#aa2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #aa2fa8;
$custom-light: #c774c2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2fa8",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 300.976,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53905,
    "c": 0.20678,
    "h": 328.7
  },
  "luminance": 0.13406
}

Semantic roles & 50–950 ramp

primary
#AA2FA8
secondary
#72C274
accent
#E04A48
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#130912
muted
#827B81

Preview Lab

Preview with #AA2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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