#AA42DC#AA42DC

#AA42DC is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.230 H 312.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AA42DC
RGBrgb(170, 66, 220)
HSLhsl(281, 69%, 56%)
HSVhsv(281, 70%, 86%)
CMYKcmyk(22.7%, 70%, 0%, 13.7%)
CIE-LABlab(49.02, 65.54, -60.05)
CIE-LCHlch(49.02, 88.89, 317.50°)
OKLaboklab(58.95% 0.1548 -0.1696)
OKLCHoklch(58.95% 0.23 312.4)
XYZxyz(31.4417, 17.6107, 69.4392)
Luminance0.1761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42DC #74DC42
analogous
#5D42DC #AA42DC #DC42C1
triadic
#AA42DC #DCAA42 #42DCAA
tetradic
#AA42DC #DC5D42 #74DC42 #42C1DC
square
#AA42DC #DC5D42 #74DC42 #42C1DC
split-complementary
#AA42DC #C1DC42 #42DC5D
monochromatic
#661A8A #8B23BE #AA42DC #C176E6 #D8A9EF

Accessibility & contrast

On white

4.64
#AA42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AA42DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42DC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42DC#FFFFFF#000000##FFFFFF
##AA42DC1.004.644.524.64
#FFFFFF4.641.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#3277D9
Tritanopia (blue-blind)
#A4638B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #aa42dc;
/* rgb */ color: rgb(170, 66, 220);
/* oklch */ color: oklch(58.9% 0.230 312.4);
Tailwind
colors: {
  custom: {
    50: '#c87fe8',
    500: '#aa42dc',
    950: '#000000',
  },
}
SCSS
$custom: #aa42dc;
$custom-light: #c87fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42dc",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 280.519,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58947,
    "c": 0.22962,
    "h": 312.4
  },
  "luminance": 0.1761
}

Semantic roles & 50–950 ramp

primary
#AA42DC
secondary
#B2DD9D
accent
#EC3C75
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AA42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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