#AA42CC#AA42CC

#AA42CC is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.9% C 0.215 H 316.6°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AA42CC
RGBrgb(170, 66, 204)
HSLhsl(285, 58%, 53%)
HSVhsv(285, 68%, 80%)
CMYKcmyk(16.7%, 67.6%, 0%, 20%)
CIE-LABlab(48.01, 62.33, -52.51)
CIE-LCHlch(48.01, 81.50, 319.88°)
OKLaboklab(57.9% 0.1562 -0.1475)
OKLCHoklch(57.9% 0.215 316.6)
XYZxyz(29.4232, 16.8033, 58.8085)
Luminance0.1680 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42CC #64CC42
analogous
#6542CC #AA42CC #CC42A9
triadic
#AA42CC #CCAA42 #42CCAA
tetradic
#AA42CC #CC6542 #64CC42 #42A9CC
square
#AA42CC #CC6542 #64CC42 #42A9CC
split-complementary
#AA42CC #A9CC42 #42CC65
monochromatic
#5F1F74 #872CA4 #AA42CC #C072D9 #D5A2E6

Accessibility & contrast

On white

4.82
#AA42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#AA42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42CC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42CC#FFFFFF#000000##FFFFFF
##AA42CC1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#4375C9
Tritanopia (blue-blind)
#A85D82
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #aa42cc;
/* rgb */ color: rgb(170, 66, 204);
/* oklch */ color: oklch(57.9% 0.215 316.6);
Tailwind
colors: {
  custom: {
    50: '#c77edc',
    500: '#aa42cc',
    950: '#000000',
  },
}
SCSS
$custom: #aa42cc;
$custom-light: #c77edc;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42cc",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 285.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57903,
    "c": 0.2148,
    "h": 316.6
  },
  "luminance": 0.16802
}

Semantic roles & 50–950 ramp

primary
#AA42CC
secondary
#A6D397
accent
#E1476D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AA42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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