#AA42AA#AA42AA

#AA42AA is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.9% C 0.184 H 327.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AA42AA
RGBrgb(170, 66, 170)
HSLhsl(300, 44%, 46%)
HSVhsv(300, 61%, 67%)
CMYKcmyk(0%, 61.2%, 0%, 33.3%)
CIE-LABlab(46.10, 55.97, -35.72)
CIE-LCHlch(46.10, 66.39, 327.46°)
OKLaboklab(55.91% 0.1559 -0.0985)
OKLCHoklch(55.91% 0.184 327.7)
XYZxyz(25.7811, 15.3464, 39.6267)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42AA #42AA42
analogous
#7642AA #AA42AA #AA4276
triadic
#AA42AA #AAAA42 #42AAAA
tetradic
#AA42AA #AA7642 #42AA42 #4276AA
square
#AA42AA #AA7642 #42AA42 #4276AA
split-complementary
#AA42AA #76AA42 #42AA76
monochromatic
#522052 #7E317E #AA42AA #C366C3 #D592D5

Accessibility & contrast

On white

5.16
#AA42AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AA42AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42AA
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42AA#FFFFFF#000000##FFFFFF
##AA42AA1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3564AD
Deuteranopia (green-blind)
#5A72A7
Tritanopia (blue-blind)
#AF4F70
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #aa42aa;
/* rgb */ color: rgb(170, 66, 170);
/* oklch */ color: oklch(55.9% 0.184 327.7);
Tailwind
colors: {
  custom: {
    50: '#c67dc3',
    500: '#aa42aa',
    950: '#000000',
  },
}
SCSS
$custom: #aa42aa;
$custom-light: #c67dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42aa",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 300,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55912,
    "c": 0.18441,
    "h": 327.7
  },
  "luminance": 0.15345
}

Semantic roles & 50–950 ramp

primary
#AA42AA
secondary
#88C088
accent
#D45454
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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