#AA5FA7#AA5FA7

#AA5FA7 is a mid, vivid purple. Relative luminance 0.195; OKLCH L 59.7% C 0.135 H 328.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AA5FA7
RGBrgb(170, 95, 167)
HSLhsl(302, 31%, 52%)
HSVhsv(302, 44%, 67%)
CMYKcmyk(0%, 44.1%, 1.8%, 33.3%)
CIE-LABlab(51.29, 41.23, -25.85)
CIE-LCHlch(51.29, 48.66, 327.91°)
OKLaboklab(59.69% 0.1153 -0.0705)
OKLCHoklch(59.69% 0.135 328.6)
XYZxyz(27.6444, 19.5219, 38.8637)
Luminance0.1952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5FA7 #5FAA62
analogous
#885FAA #AA5FA7 #AA5F82
triadic
#AA5FA7 #A7AA5F #5FA7AA
tetradic
#AA5FA7 #AA885F #5FAA62 #5F82AA
square
#AA5FA7 #AA885F #5FAA62 #5F82AA
split-complementary
#AA5FA7 #82AA5F #5FAA88
monochromatic
#5D315B #854783 #AA5FA7 #BF87BD #D4AFD3

Accessibility & contrast

On white

4.28
#AA5FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#AA5FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5FA7
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5FA7#FFFFFF#000000##000000
##AA5FA71.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A74AA
Deuteranopia (green-blind)
#6F7EA5
Tritanopia (blue-blind)
#AF667B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa5fa7;
/* rgb */ color: rgb(170, 95, 167);
/* oklch */ color: oklch(59.7% 0.135 328.6);
Tailwind
colors: {
  custom: {
    50: '#c58fc1',
    500: '#aa5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #aa5fa7;
$custom-light: #c58fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5fa7",
  "rgb": {
    "r": 170,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 302.4,
    "s": 30.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5969,
    "c": 0.13518,
    "h": 328.6
  },
  "luminance": 0.1952
}

Semantic roles & 50–950 ramp

primary
#AA5FA7
secondary
#A2C3A3
accent
#C76561
background
#FCF8FB
surface
#F8F0F7
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AA5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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