#AA2FA7#AA2FA7

#AA2FA7 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.206 H 329.0°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#AA2FA7
RGBrgb(170, 47, 167)
HSLhsl(301, 57%, 43%)
HSVhsv(301, 72%, 67%)
CMYKcmyk(0%, 72.4%, 1.8%, 33.3%)
CIE-LABlab(43.32, 62.83, -38.34)
CIE-LCHlch(43.32, 73.61, 328.61°)
OKLaboklab(53.85% 0.1766 -0.106)
OKLCHoklch(53.85% 0.206 329)
XYZxyz(24.5689, 13.3709, 37.8385)
Luminance0.1337 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA2FA7 #2FAA32
analogous
#6F2FAA #AA2FA7 #AA2F6A
triadic
#AA2FA7 #A7AA2F #2FA7AA
tetradic
#AA2FA7 #AA6F2F #2FAA32 #2F6AAA
square
#AA2FA7 #AA6F2F #2FAA32 #2F6AAA
split-complementary
#AA2FA7 #6AAA2F #2FAA6F
monochromatic
#4A1449 #7A2278 #AA2FA7 #CD49CA #DA79D8

Accessibility & contrast

On white

5.72
#AA2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#AA2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA2FA7
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA2FA7#FFFFFF#000000##FFFFFF
##AA2FA71.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B04068
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #aa2fa7;
/* rgb */ color: rgb(170, 47, 167);
/* oklch */ color: oklch(53.8% 0.206 329.0);
Tailwind
colors: {
  custom: {
    50: '#c774c1',
    500: '#aa2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #aa2fa7;
$custom-light: #c774c1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa2fa7",
  "rgb": {
    "r": 170,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 301.463,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53848,
    "c": 0.20601,
    "h": 329
  },
  "luminance": 0.13369
}

Semantic roles & 50–950 ramp

primary
#AA2FA7
secondary
#72C274
accent
#E04C48
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #AA2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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