#AA51CB#AA51CB

#AA51CB is a mid, vivid purple. Relative luminance 0.187; OKLCH L 59.6% C 0.193 H 315.8°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AA51CB
RGBrgb(170, 81, 203)
HSLhsl(284, 54%, 56%)
HSVhsv(284, 60%, 80%)
CMYKcmyk(16.3%, 60.1%, 0%, 20.4%)
CIE-LABlab(50.39, 55.41, -48.14)
CIE-LCHlch(50.39, 73.40, 319.01°)
OKLaboklab(59.6% 0.1388 -0.1348)
OKLCHoklch(59.6% 0.193 315.8)
XYZxyz(30.2978, 18.7437, 58.5103)
Luminance0.1874 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51CB #72CB51
analogous
#6D51CB #AA51CB #CB51AF
triadic
#AA51CB #CBAA51 #51CBAA
tetradic
#AA51CB #CB6D51 #72CB51 #51AFCB
square
#AA51CB #CB6D51 #72CB51 #51AFCB
split-complementary
#AA51CB #AFCB51 #51CB6D
monochromatic
#65257C #8B33AC #AA51CB #C180D9 #D8AFE7

Accessibility & contrast

On white

4.42
#AA51CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#AA51CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51CB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51CB#FFFFFF#000000##000000
##AA51CB1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C73CF
Deuteranopia (green-blind)
#517AC8
Tritanopia (blue-blind)
#A86686
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #aa51cb;
/* rgb */ color: rgb(170, 81, 203);
/* oklch */ color: oklch(59.6% 0.193 315.8);
Tailwind
colors: {
  custom: {
    50: '#c687db',
    500: '#aa51cb',
    950: '#000000',
  },
}
SCSS
$custom: #aa51cb;
$custom-light: #c687db;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51cb",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 283.77,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.596,
    "c": 0.19348,
    "h": 315.8
  },
  "luminance": 0.18743
}

Semantic roles & 50–950 ramp

primary
#AA51CB
secondary
#B0D5A3
accent
#DD4A72
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#130C15
muted
#827D83

Preview Lab

Preview with #AA51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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