#AA42C5#AA42C5

#AA42C5 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 57.5% C 0.208 H 318.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#AA42C5
RGBrgb(170, 66, 197)
HSLhsl(288, 53%, 52%)
HSVhsv(288, 66%, 77%)
CMYKcmyk(13.7%, 66.5%, 0%, 22.7%)
CIE-LABlab(47.59, 60.96, -49.14)
CIE-LCHlch(47.59, 78.30, 321.13°)
OKLaboklab(57.47% 0.1565 -0.1376)
OKLCHoklch(57.47% 0.208 318.7)
XYZxyz(28.6025, 16.4750, 54.4859)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42C5 #5DC542
analogous
#6942C5 #AA42C5 #C5429E
triadic
#AA42C5 #C5AA42 #42C5AA
tetradic
#AA42C5 #C56942 #5DC542 #429EC5
square
#AA42C5 #C56942 #5DC542 #429EC5
split-complementary
#AA42C5 #9EC542 #42C569
monochromatic
#5C216C #842F9A #AA42C5 #BF71D3 #D4A0E2

Accessibility & contrast

On white

4.89
#AA42C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AA42C5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42C5#FFFFFF#000000##FFFFFF
##AA42C51.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6AC9
Deuteranopia (green-blind)
#4974C2
Tritanopia (blue-blind)
#AA5A7E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa42c5;
/* rgb */ color: rgb(170, 66, 197);
/* oklch */ color: oklch(57.5% 0.208 318.7);
Tailwind
colors: {
  custom: {
    50: '#c77ed7',
    500: '#aa42c5',
    950: '#000000',
  },
}
SCSS
$custom: #aa42c5;
$custom-light: #c77ed7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42c5",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 287.634,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57467,
    "c": 0.20838,
    "h": 318.7
  },
  "luminance": 0.16474
}

Semantic roles & 50–950 ramp

primary
#AA42C5
secondary
#A0CE95
accent
#DC4B69
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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