#AA42CD#AA42CD

#AA42CD is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.0% C 0.216 H 316.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AA42CD
RGBrgb(170, 66, 205)
HSLhsl(285, 58%, 53%)
HSVhsv(285, 68%, 80%)
CMYKcmyk(17.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(48.07, 62.52, -52.99)
CIE-LCHlch(48.07, 81.96, 319.72°)
OKLaboklab(57.97% 0.1561 -0.1489)
OKLCHoklch(57.97% 0.216 316.4)
XYZxyz(29.5435, 16.8514, 59.4422)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42CD #65CD42
analogous
#6442CD #AA42CD #CD42AA
triadic
#AA42CD #CDAA42 #42CDAA
tetradic
#AA42CD #CD6442 #65CD42 #42AACD
square
#AA42CD #CD6442 #65CD42 #42AACD
split-complementary
#AA42CD #AACD42 #42CD64
monochromatic
#601F76 #872CA6 #AA42CD #C072DA #D6A3E7

Accessibility & contrast

On white

4.81
#AA42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AA42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42CD
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42CD#FFFFFF#000000##FFFFFF
##AA42CD1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#4375CA
Tritanopia (blue-blind)
#A85D83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #aa42cd;
/* rgb */ color: rgb(170, 66, 205);
/* oklch */ color: oklch(58.0% 0.216 316.4);
Tailwind
colors: {
  custom: {
    50: '#c77edd',
    500: '#aa42cd',
    950: '#000000',
  },
}
SCSS
$custom: #aa42cd;
$custom-light: #c77edd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42cd",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 284.892,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57967,
    "c": 0.21572,
    "h": 316.4
  },
  "luminance": 0.1685
}

Semantic roles & 50–950 ramp

primary
#AA42CD
secondary
#A7D397
accent
#E1466D
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AA42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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