#AA42B8#AA42B8

#AA42B8 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.197 H 322.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#AA42B8
RGBrgb(170, 66, 184)
HSLhsl(293, 47%, 49%)
HSVhsv(293, 64%, 72%)
CMYKcmyk(7.6%, 64.1%, 0%, 27.8%)
CIE-LABlab(46.85, 58.50, -42.76)
CIE-LCHlch(46.85, 72.46, 323.83°)
OKLaboklab(56.69% 0.1566 -0.119)
OKLCHoklch(56.69% 0.197 322.8)
XYZxyz(27.1766, 15.9046, 46.9765)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42B8 #50B842
analogous
#6F42B8 #AA42B8 #B8428B
triadic
#AA42B8 #B8AA42 #42B8AA
tetradic
#AA42B8 #B86F42 #50B842 #428BB8
square
#AA42B8 #B86F42 #50B842 #428BB8
split-complementary
#AA42B8 #8BB842 #42B86F
monochromatic
#57225E #80328B #AA42B8 #BF6DCB #D39ADB

Accessibility & contrast

On white

5.02
#AA42B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AA42B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42B8
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42B8#FFFFFF#000000##FFFFFF
##AA42B81.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2767BC
Deuteranopia (green-blind)
#5273B5
Tritanopia (blue-blind)
#AC5577
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #aa42b8;
/* rgb */ color: rgb(170, 66, 184);
/* oklch */ color: oklch(56.7% 0.197 322.8);
Tailwind
colors: {
  custom: {
    50: '#c67ece',
    500: '#aa42b8',
    950: '#000000',
  },
}
SCSS
$custom: #aa42b8;
$custom-light: #c67ece;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42b8",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 292.881,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56693,
    "c": 0.19665,
    "h": 322.8
  },
  "luminance": 0.15903
}

Semantic roles & 50–950 ramp

primary
#AA42B8
secondary
#96C78F
accent
#D75161
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A13
muted
#827C82

Preview Lab

Preview with #AA42B8

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

Preview Lab → · Contrast checker → · Palette generator →

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