#AA42CB#AA42CB

#AA42CB is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.8% C 0.214 H 316.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AA42CB
RGBrgb(170, 66, 203)
HSLhsl(286, 57%, 53%)
HSVhsv(286, 67%, 80%)
CMYKcmyk(16.3%, 67.5%, 0%, 20.4%)
CIE-LABlab(47.95, 62.13, -52.03)
CIE-LCHlch(47.95, 81.04, 320.05°)
OKLaboklab(57.84% 0.1562 -0.1461)
OKLCHoklch(57.84% 0.214 316.9)
XYZxyz(29.3037, 16.7555, 58.1789)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA42CB #63CB42
analogous
#6542CB #AA42CB #CB42A8
triadic
#AA42CB #CBAA42 #42CBAA
tetradic
#AA42CB #CB6542 #63CB42 #42A8CB
square
#AA42CB #CB6542 #63CB42 #42A8CB
split-complementary
#AA42CB #A8CB42 #42CB65
monochromatic
#5F2073 #872DA3 #AA42CB #C072D8 #D5A2E5

Accessibility & contrast

On white

4.83
#AA42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AA42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AA42CB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA42CB#FFFFFF#000000##FFFFFF
##AA42CB1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#4475C8
Tritanopia (blue-blind)
#A85C81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #aa42cb;
/* rgb */ color: rgb(170, 66, 203);
/* oklch */ color: oklch(57.8% 0.214 316.9);
Tailwind
colors: {
  custom: {
    50: '#c77edb',
    500: '#aa42cb',
    950: '#000000',
  },
}
SCSS
$custom: #aa42cb;
$custom-light: #c77edb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa42cb",
  "rgb": {
    "r": 170,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 285.547,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5784,
    "c": 0.21388,
    "h": 316.9
  },
  "luminance": 0.16754
}

Semantic roles & 50–950 ramp

primary
#AA42CB
secondary
#A5D297
accent
#E0486C
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#130B15
muted
#827C83

Preview Lab

Preview with #AA42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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