#AA42BA#AA42BA

#AA42BA is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.198 H 322.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AA42BA
RGBrgb(170, 66, 186)
HSLhsl(292, 48%, 49%)
HSVhsv(292, 65%, 73%)
CMYKcmyk(8.6%, 64.5%, 0%, 27.1%)
CIE-LABlab(46.96, 58.87, -43.76)
CIE-LCHlch(46.96, 73.35, 323.38°)
OKLaboklab(56.81% 0.1566 -0.1219)
OKLCHoklch(56.81% 0.198 322.1)
XYZxyz(27.3878, 15.9891, 48.0885)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42BA #52BA42
analogous
#6E42BA #AA42BA #BA428E
triadic
#AA42BA #BAAA42 #42BAAA
tetradic
#AA42BA #BA6E42 #52BA42 #428EBA
square
#AA42BA #BA6E42 #52BA42 #428EBA
split-complementary
#AA42BA #8EBA42 #42BA6E
monochromatic
#572260 #81328D #AA42BA #BF6ECB #D39BDB

Accessibility & contrast

On white

5.00
#AA42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AA42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42BA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42BA#FFFFFF#000000##FFFFFF
##AA42BA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2468BE
Deuteranopia (green-blind)
#5173B7
Tritanopia (blue-blind)
#AC5578
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa42ba;
/* rgb */ color: rgb(170, 66, 186);
/* oklch */ color: oklch(56.8% 0.198 322.1);
Tailwind
colors: {
  custom: {
    50: '#c67ecf',
    500: '#aa42ba',
    950: '#000000',
  },
}
SCSS
$custom: #aa42ba;
$custom-light: #c67ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42ba",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 292,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56809,
    "c": 0.19844,
    "h": 322.1
  },
  "luminance": 0.15988
}

Semantic roles & 50–950 ramp

primary
#AA42BA
secondary
#98C890
accent
#D75163
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #AA42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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