#AA5FA2#AA5FA2

#AA5FA2 is a mid, vivid purple. Relative luminance 0.193; OKLCH L 59.5% C 0.130 H 331.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#AA5FA2
RGBrgb(170, 95, 162)
HSLhsl(306, 31%, 52%)
HSVhsv(306, 44%, 67%)
CMYKcmyk(0%, 44.1%, 4.7%, 33.3%)
CIE-LABlab(51.08, 40.31, -23.24)
CIE-LCHlch(51.08, 46.53, 330.03°)
OKLaboklab(59.47% 0.1142 -0.0631)
OKLCHoklch(59.47% 0.13 331.1)
XYZxyz(27.1911, 19.3406, 36.4763)
Luminance0.1934 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5FA2 #5FAA67
analogous
#8D5FAA #AA5FA2 #AA5F7D
triadic
#AA5FA2 #A2AA5F #5FA2AA
tetradic
#AA5FA2 #AA8D5F #5FAA67 #5F7DAA
square
#AA5FA2 #AA8D5F #5FAA67 #5F7DAA
split-complementary
#AA5FA2 #7DAA5F #5FAA8D
monochromatic
#5D3158 #85477E #AA5FA2 #BF87B9 #D4AFD0

Accessibility & contrast

On white

4.31
#AA5FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#AA5FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5FA2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5FA2#FFFFFF#000000##000000
##AA5FA21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C73A4
Deuteranopia (green-blind)
#717DA0
Tritanopia (blue-blind)
#AF6479
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa5fa2;
/* rgb */ color: rgb(170, 95, 162);
/* oklch */ color: oklch(59.5% 0.130 331.1);
Tailwind
colors: {
  custom: {
    50: '#c58ebd',
    500: '#aa5fa2',
    950: '#000000',
  },
}
SCSS
$custom: #aa5fa2;
$custom-light: #c58ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5fa2",
  "rgb": {
    "r": 170,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 306.4,
    "s": 30.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59466,
    "c": 0.13049,
    "h": 331.1
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#AA5FA2
secondary
#A2C3A5
accent
#C76C61
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AA5FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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