#AA51BB#AA51BB

#AA51BB is a mid, vivid purple. Relative luminance 0.180; OKLCH L 58.7% C 0.178 H 321.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AA51BB
RGBrgb(170, 81, 187)
HSLhsl(290, 44%, 53%)
HSVhsv(290, 57%, 73%)
CMYKcmyk(9.1%, 56.7%, 0%, 26.7%)
CIE-LABlab(49.52, 52.20, -40.28)
CIE-LCHlch(49.52, 65.93, 322.35°)
OKLaboklab(58.69% 0.1381 -0.1119)
OKLCHoklch(58.69% 0.178 321)
XYZxyz(28.4886, 18.0201, 48.9817)
Luminance0.1802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51BB #62BB51
analogous
#7551BB #AA51BB #BB5197
triadic
#AA51BB #BBAA51 #51BBAA
tetradic
#AA51BB #BB7551 #62BB51 #5197BB
square
#AA51BB #BB7551 #62BB51 #5197BB
split-complementary
#AA51BB #97BB51 #51BB75
monochromatic
#5E2969 #863A95 #AA51BB #BF7DCC #D5A9DD

Accessibility & contrast

On white

4.56
#AA51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AA51BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51BB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51BB#FFFFFF#000000##000000
##AA51BB1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6FBE
Deuteranopia (green-blind)
#5B79B8
Tritanopia (blue-blind)
#AB617E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #aa51bb;
/* rgb */ color: rgb(170, 81, 187);
/* oklch */ color: oklch(58.7% 0.178 321.0);
Tailwind
colors: {
  custom: {
    50: '#c686d0',
    500: '#aa51bb',
    950: '#000000',
  },
}
SCSS
$custom: #aa51bb;
$custom-light: #c686d0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51bb",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 290.377,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.58688,
    "c": 0.17769,
    "h": 321
  },
  "luminance": 0.18019
}

Semantic roles & 50–950 ramp

primary
#AA51BB
secondary
#A4CB9D
accent
#D45469
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130B14
muted
#827C82

Preview Lab

Preview with #AA51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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