#AA42C8#AA42C8

#AA42C8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.7% C 0.211 H 317.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AA42C8
RGBrgb(170, 66, 200)
HSLhsl(287, 55%, 52%)
HSVhsv(287, 67%, 78%)
CMYKcmyk(15%, 67%, 0%, 21.6%)
CIE-LABlab(47.77, 61.54, -50.59)
CIE-LCHlch(47.77, 79.67, 320.58°)
OKLaboklab(57.65% 0.1564 -0.1418)
OKLCHoklch(57.65% 0.211 317.8)
XYZxyz(28.9496, 16.6138, 56.3142)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42C8 #60C842
analogous
#6742C8 #AA42C8 #C842A3
triadic
#AA42C8 #C8AA42 #42C8AA
tetradic
#AA42C8 #C86742 #60C842 #42A3C8
square
#AA42C8 #C86742 #60C842 #42A3C8
split-complementary
#AA42C8 #A3C842 #42C867
monochromatic
#5E206F #852E9F #AA42C8 #BF71D6 #D5A1E4

Accessibility & contrast

On white

4.86
#AA42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AA42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42C8#FFFFFF#000000##FFFFFF
##AA42C81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016BCC
Deuteranopia (green-blind)
#4775C5
Tritanopia (blue-blind)
#A95B80
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #aa42c8;
/* rgb */ color: rgb(170, 66, 200);
/* oklch */ color: oklch(57.7% 0.211 317.8);
Tailwind
colors: {
  custom: {
    50: '#c77ed9',
    500: '#aa42c8',
    950: '#000000',
  },
}
SCSS
$custom: #aa42c8;
$custom-light: #c77ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42c8",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 286.567,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57653,
    "c": 0.21112,
    "h": 317.8
  },
  "luminance": 0.16613
}

Semantic roles & 50–950 ramp

primary
#AA42C8
secondary
#A3D096
accent
#DE4A6B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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