#AA42A2#AA42A2

#AA42A2 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.5% C 0.178 H 330.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AA42A2
RGBrgb(170, 66, 162)
HSLhsl(305, 44%, 46%)
HSVhsv(305, 61%, 67%)
CMYKcmyk(0%, 61.2%, 4.7%, 33.3%)
CIE-LABlab(45.71, 54.58, -31.60)
CIE-LCHlch(45.71, 63.07, 329.93°)
OKLaboklab(55.49% 0.1551 -0.0867)
OKLCHoklch(55.49% 0.178 330.8)
XYZxyz(25.0472, 15.0529, 35.7617)
Luminance0.1505 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42A2 #42AA4A
analogous
#7E42AA #AA42A2 #AA426E
triadic
#AA42A2 #A2AA42 #42A2AA
tetradic
#AA42A2 #AA7E42 #42AA4A #426EAA
square
#AA42A2 #AA7E42 #42AA4A #426EAA
split-complementary
#AA42A2 #6EAA42 #42AA7E
monochromatic
#52204E #7E3178 #AA42A2 #C366BC #D592CF

Accessibility & contrast

On white

5.24
#AA42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AA42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42A2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42A2#FFFFFF#000000##FFFFFF
##AA42A21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#B04C6C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #aa42a2;
/* rgb */ color: rgb(170, 66, 162);
/* oklch */ color: oklch(55.5% 0.178 330.8);
Tailwind
colors: {
  custom: {
    50: '#c67dbe',
    500: '#aa42a2',
    950: '#000000',
  },
}
SCSS
$custom: #aa42a2;
$custom-light: #c67dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42a2",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 304.615,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55493,
    "c": 0.17768,
    "h": 330.8
  },
  "luminance": 0.15051
}

Semantic roles & 50–950 ramp

primary
#AA42A2
secondary
#88C08C
accent
#D45E54
background
#FCF7FB
surface
#F8EEF6
border
#D1C9D0
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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