#AA42C4#AA42C4

#AA42C4 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.4% C 0.207 H 319.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#AA42C4
RGBrgb(170, 66, 196)
HSLhsl(288, 52%, 51%)
HSVhsv(288, 66%, 77%)
CMYKcmyk(13.3%, 66.3%, 0%, 23.1%)
CIE-LABlab(47.53, 60.77, -48.66)
CIE-LCHlch(47.53, 77.85, 321.32°)
OKLaboklab(57.41% 0.1565 -0.1362)
OKLCHoklch(57.41% 0.207 319)
XYZxyz(28.4883, 16.4293, 53.8844)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42C4 #5CC442
analogous
#6942C4 #AA42C4 #C4429D
triadic
#AA42C4 #C4AA42 #42C4AA
tetradic
#AA42C4 #C46942 #5CC442 #429DC4
square
#AA42C4 #C46942 #5CC442 #429DC4
split-complementary
#AA42C4 #9DC442 #42C469
monochromatic
#5C216A #843099 #AA42C4 #BF71D3 #D49FE1

Accessibility & contrast

On white

4.90
#AA42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#AA42C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42C4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42C4#FFFFFF#000000##FFFFFF
##AA42C41.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116AC8
Deuteranopia (green-blind)
#4A74C1
Tritanopia (blue-blind)
#AA597E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa42c4;
/* rgb */ color: rgb(170, 66, 196);
/* oklch */ color: oklch(57.4% 0.207 319.0);
Tailwind
colors: {
  custom: {
    50: '#c77ed6',
    500: '#aa42c4',
    950: '#000000',
  },
}
SCSS
$custom: #aa42c4;
$custom-light: #c77ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42c4",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 288,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.57406,
    "c": 0.20747,
    "h": 319
  },
  "luminance": 0.16428
}

Semantic roles & 50–950 ramp

primary
#AA42C4
secondary
#A0CE94
accent
#DC4C69
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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