#AA42C2#AA42C2

#AA42C2 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.3% C 0.206 H 319.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AA42C2
RGBrgb(170, 66, 194)
HSLhsl(289, 51%, 51%)
HSVhsv(289, 66%, 76%)
CMYKcmyk(12.4%, 66%, 0%, 23.9%)
CIE-LABlab(47.42, 60.38, -47.68)
CIE-LCHlch(47.42, 76.94, 321.70°)
OKLaboklab(57.29% 0.1566 -0.1333)
OKLCHoklch(57.29% 0.206 319.6)
XYZxyz(28.2621, 16.3388, 52.6935)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42C2 #5AC242
analogous
#6A42C2 #AA42C2 #C2429A
triadic
#AA42C2 #C2AA42 #42C2AA
tetradic
#AA42C2 #C26A42 #5AC242 #429AC2
square
#AA42C2 #C26A42 #5AC242 #429AC2
split-complementary
#AA42C2 #9AC242 #42C26A
monochromatic
#5B2268 #833196 #AA42C2 #BF70D1 #D49FE0

Accessibility & contrast

On white

4.92
#AA42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AA42C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42C2
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42C2#FFFFFF#000000##FFFFFF
##AA42C21.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1669C6
Deuteranopia (green-blind)
#4C74BF
Tritanopia (blue-blind)
#AA597D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #aa42c2;
/* rgb */ color: rgb(170, 66, 194);
/* oklch */ color: oklch(57.3% 0.206 319.6);
Tailwind
colors: {
  custom: {
    50: '#c77ed5',
    500: '#aa42c2',
    950: '#000000',
  },
}
SCSS
$custom: #aa42c2;
$custom-light: #c77ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42c2",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 288.75,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.57285,
    "c": 0.20565,
    "h": 319.6
  },
  "luminance": 0.16338
}

Semantic roles & 50–950 ramp

primary
#AA42C2
secondary
#9ECC94
accent
#DB4D68
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#130A14
muted
#827C83

Preview Lab

Preview with #AA42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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