#AA42A8#AA42A8

#AA42A8 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.8% C 0.183 H 328.5°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AA42A8
RGBrgb(170, 66, 168)
HSLhsl(301, 44%, 46%)
HSVhsv(301, 61%, 67%)
CMYKcmyk(0%, 61.2%, 1.2%, 33.3%)
CIE-LABlab(46.00, 55.62, -34.69)
CIE-LCHlch(46.00, 65.55, 328.05°)
OKLaboklab(55.81% 0.1557 -0.0956)
OKLCHoklch(55.81% 0.183 328.5)
XYZxyz(25.5934, 15.2713, 38.6378)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42A8 #42AA44
analogous
#7842AA #AA42A8 #AA4274
triadic
#AA42A8 #A8AA42 #42A8AA
tetradic
#AA42A8 #AA7842 #42AA44 #4274AA
square
#AA42A8 #AA7842 #42AA44 #4274AA
split-complementary
#AA42A8 #74AA42 #42AA78
monochromatic
#522051 #7E317C #AA42A8 #C366C2 #D592D3

Accessibility & contrast

On white

5.18
#AA42A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AA42A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42A8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42A8#FFFFFF#000000##FFFFFF
##AA42A81.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3764AB
Deuteranopia (green-blind)
#5B72A5
Tritanopia (blue-blind)
#AF4E6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #aa42a8;
/* rgb */ color: rgb(170, 66, 168);
/* oklch */ color: oklch(55.8% 0.183 328.5);
Tailwind
colors: {
  custom: {
    50: '#c67dc2',
    500: '#aa42a8',
    950: '#000000',
  },
}
SCSS
$custom: #aa42a8;
$custom-light: #c67dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42a8",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 301.154,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.18271,
    "h": 328.5
  },
  "luminance": 0.1527
}

Semantic roles & 50–950 ramp

primary
#AA42A8
secondary
#88C089
accent
#D45654
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A12
muted
#827C81

Preview Lab

Preview with #AA42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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