#AA42CA#AA42CA

#AA42CA is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.8% C 0.213 H 317.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AA42CA
RGBrgb(170, 66, 202)
HSLhsl(286, 56%, 53%)
HSVhsv(286, 67%, 79%)
CMYKcmyk(15.8%, 67.3%, 0%, 20.8%)
CIE-LABlab(47.89, 61.93, -51.55)
CIE-LCHlch(47.89, 80.58, 320.23°)
OKLaboklab(57.78% 0.1563 -0.1447)
OKLCHoklch(57.78% 0.213 317.2)
XYZxyz(29.1849, 16.7079, 57.5533)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42CA #62CA42
analogous
#6642CA #AA42CA #CA42A6
triadic
#AA42CA #CAAA42 #42CAAA
tetradic
#AA42CA #CA6642 #62CA42 #42A6CA
square
#AA42CA #CA6642 #62CA42 #42A6CA
split-complementary
#AA42CA #A6CA42 #42CA66
monochromatic
#5E2072 #862DA2 #AA42CA #BF72D7 #D5A2E5

Accessibility & contrast

On white

4.84
#AA42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#AA42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42CA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42CA#FFFFFF#000000##FFFFFF
##AA42CA1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#4575C7
Tritanopia (blue-blind)
#A95C81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #aa42ca;
/* rgb */ color: rgb(170, 66, 202);
/* oklch */ color: oklch(57.8% 0.213 317.2);
Tailwind
colors: {
  custom: {
    50: '#c77edb',
    500: '#aa42ca',
    950: '#000000',
  },
}
SCSS
$custom: #aa42ca;
$custom-light: #c77edb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42ca",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 285.882,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.57778,
    "c": 0.21296,
    "h": 317.2
  },
  "luminance": 0.16707
}

Semantic roles & 50–950 ramp

primary
#AA42CA
secondary
#A4D196
accent
#DF486C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #AA42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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