#AA5FA8#AA5FA8

#AA5FA8 is a mid, vivid purple. Relative luminance 0.196; OKLCH L 59.7% C 0.136 H 328.1°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AA5FA8
RGBrgb(170, 95, 168)
HSLhsl(302, 31%, 52%)
HSVhsv(302, 44%, 67%)
CMYKcmyk(0%, 44.1%, 1.2%, 33.3%)
CIE-LABlab(51.33, 41.41, -26.37)
CIE-LCHlch(51.33, 49.09, 327.51°)
OKLaboklab(59.74% 0.1155 -0.072)
OKLCHoklch(59.74% 0.136 328.1)
XYZxyz(27.7372, 19.5590, 39.3525)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5FA8 #5FAA61
analogous
#875FAA #AA5FA8 #AA5F83
triadic
#AA5FA8 #A8AA5F #5FA8AA
tetradic
#AA5FA8 #AA875F #5FAA61 #5F83AA
square
#AA5FA8 #AA875F #5FAA61 #5F83AA
split-complementary
#AA5FA8 #83AA5F #5FAA87
monochromatic
#5D315C #854783 #AA5FA8 #BF87BE #D4AFD3

Accessibility & contrast

On white

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

On black

4.91
#AA5FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5FA8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5FA8#FFFFFF#000000##000000
##AA5FA81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A74AB
Deuteranopia (green-blind)
#6E7EA6
Tritanopia (blue-blind)
#AE667C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa5fa8;
/* rgb */ color: rgb(170, 95, 168);
/* oklch */ color: oklch(59.7% 0.136 328.1);
Tailwind
colors: {
  custom: {
    50: '#c58fc2',
    500: '#aa5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #aa5fa8;
$custom-light: #c58fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5fa8",
  "rgb": {
    "r": 170,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 301.6,
    "s": 30.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59736,
    "c": 0.13613,
    "h": 328.1
  },
  "luminance": 0.19558
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AA5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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