#AA42B2#AA42B2

#AA42B2 is a mid, vivid purple. Relative luminance 0.157; OKLCH L 56.4% C 0.191 H 324.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AA42B2
RGBrgb(170, 66, 178)
HSLhsl(296, 46%, 48%)
HSVhsv(296, 63%, 70%)
CMYKcmyk(4.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(46.52, 57.40, -39.77)
CIE-LCHlch(46.52, 69.83, 325.28°)
OKLaboklab(56.35% 0.1564 -0.1103)
OKLCHoklch(56.35% 0.191 324.8)
XYZxyz(26.5610, 15.6584, 43.7342)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42B2 #4AB242
analogous
#7242B2 #AA42B2 #B24282
triadic
#AA42B2 #B2AA42 #42B2AA
tetradic
#AA42B2 #B27242 #4AB242 #4282B2
square
#AA42B2 #B27242 #4AB242 #4282B2
split-complementary
#AA42B2 #82B242 #42B272
monochromatic
#552159 #7F3185 #AA42B2 #C16AC8 #D396D8

Accessibility & contrast

On white

5.08
#AA42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AA42B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42B2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42B2#FFFFFF#000000##FFFFFF
##AA42B21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B5
Deuteranopia (green-blind)
#5673AF
Tritanopia (blue-blind)
#AE5274
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #aa42b2;
/* rgb */ color: rgb(170, 66, 178);
/* oklch */ color: oklch(56.4% 0.191 324.8);
Tailwind
colors: {
  custom: {
    50: '#c67dc9',
    500: '#aa42b2',
    950: '#000000',
  },
}
SCSS
$custom: #aa42b2;
$custom-light: #c67dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42b2",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 295.714,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56351,
    "c": 0.19134,
    "h": 324.8
  },
  "luminance": 0.15657
}

Semantic roles & 50–950 ramp

primary
#AA42B2
secondary
#90C48C
accent
#D6525C
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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