#AA23A6#AA23A6

#AA23A6 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.9% C 0.217 H 329.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#AA23A6
RGBrgb(170, 35, 166)
HSLhsl(302, 66%, 40%)
HSVhsv(302, 79%, 67%)
CMYKcmyk(0%, 79.4%, 2.4%, 33.3%)
CIE-LABlab(42.00, 66.28, -39.83)
CIE-LCHlch(42.00, 77.32, 329.00°)
OKLaboklab(52.89% 0.1869 -0.1102)
OKLCHoklch(52.89% 0.217 329.5)
XYZxyz(24.0614, 12.5032, 37.2151)
Luminance0.1250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA23A6 #23AA27
analogous
#6B23AA #AA23A6 #AA2362
triadic
#AA23A6 #A6AA23 #23A6AA
tetradic
#AA23A6 #AA6B23 #23AA27 #2362AA
square
#AA23A6 #AA6B23 #23AA27 #2362AA
split-complementary
#AA23A6 #62AA23 #23AA6B
monochromatic
#440E43 #771974 #AA23A6 #D535D1 #E068DC

Accessibility & contrast

On white

6.00
#AA23A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#AA23A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA23A6
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA23A6#FFFFFF#000000##FFFFFF
##AA23A61.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#4D69A3
Tritanopia (blue-blind)
#B03965
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #aa23a6;
/* rgb */ color: rgb(170, 35, 166);
/* oklch */ color: oklch(52.9% 0.217 329.5);
Tailwind
colors: {
  custom: {
    50: '#c76fc1',
    500: '#aa23a6',
    950: '#000000',
  },
}
SCSS
$custom: #aa23a6;
$custom-light: #c76fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#aa23a6",
  "rgb": {
    "r": 170,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 301.778,
    "s": 65.854,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52893,
    "c": 0.21702,
    "h": 329.5
  },
  "luminance": 0.12501
}

Semantic roles & 50–950 ramp

primary
#AA23A6
secondary
#63C666
accent
#E9443F
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AA23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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