#AA23A1#AA23A1

#AA23A1 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.213 H 331.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#AA23A1
RGBrgb(170, 35, 161)
HSLhsl(304, 66%, 40%)
HSVhsv(304, 79%, 67%)
CMYKcmyk(0%, 79.4%, 5.3%, 33.3%)
CIE-LABlab(41.73, 65.50, -37.28)
CIE-LCHlch(41.73, 75.36, 330.36°)
OKLaboklab(52.6% 0.187 -0.1028)
OKLCHoklch(52.6% 0.213 331.2)
XYZxyz(23.6116, 12.3233, 34.8464)
Luminance0.1232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA23A1 #23AA2C
analogous
#6F23AA #AA23A1 #AA235D
triadic
#AA23A1 #A1AA23 #23A1AA
tetradic
#AA23A1 #AA6F23 #23AA2C #235DAA
square
#AA23A1 #AA6F23 #23AA2C #235DAA
split-complementary
#AA23A1 #5DAA23 #23AA6F
monochromatic
#440E41 #771971 #AA23A1 #D535CB #E068D8

Accessibility & contrast

On white

6.06
#AA23A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#AA23A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA23A1
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA23A1#FFFFFF#000000##FFFFFF
##AA23A11.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1257A4
Deuteranopia (green-blind)
#50699E
Tritanopia (blue-blind)
#B13662
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #aa23a1;
/* rgb */ color: rgb(170, 35, 161);
/* oklch */ color: oklch(52.6% 0.213 331.2);
Tailwind
colors: {
  custom: {
    50: '#c76fbd',
    500: '#aa23a1',
    950: '#000000',
  },
}
SCSS
$custom: #aa23a1;
$custom-light: #c76fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa23a1",
  "rgb": {
    "r": 170,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 304,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52604,
    "c": 0.2134,
    "h": 331.2
  },
  "luminance": 0.12321
}

Semantic roles & 50–950 ramp

primary
#AA23A1
secondary
#63C66A
accent
#E94A3F
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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