#AA51C8#AA51C8

#AA51C8 is a mid, vivid purple. Relative luminance 0.186; OKLCH L 59.4% C 0.190 H 316.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AA51C8
RGBrgb(170, 81, 200)
HSLhsl(285, 52%, 55%)
HSVhsv(285, 60%, 78%)
CMYKcmyk(15%, 59.5%, 0%, 21.6%)
CIE-LABlab(50.22, 54.80, -46.68)
CIE-LCHlch(50.22, 71.99, 319.57°)
OKLaboklab(59.42% 0.1387 -0.1305)
OKLCHoklch(59.42% 0.19 316.7)
XYZxyz(29.9438, 18.6021, 56.6456)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51C8 #6FC851
analogous
#6F51C8 #AA51C8 #C851AA
triadic
#AA51C8 #C8AA51 #51C8AA
tetradic
#AA51C8 #C86F51 #6FC851 #51AAC8
square
#AA51C8 #C86F51 #6FC851 #51AAC8
split-complementary
#AA51C8 #AAC851 #51C86F
monochromatic
#642679 #8A35A7 #AA51C8 #C180D7 #D7AEE5

Accessibility & contrast

On white

4.45
#AA51C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#AA51C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51C8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51C8#FFFFFF#000000##000000
##AA51C81.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3072CC
Deuteranopia (green-blind)
#537AC5
Tritanopia (blue-blind)
#A96585
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #aa51c8;
/* rgb */ color: rgb(170, 81, 200);
/* oklch */ color: oklch(59.4% 0.190 316.7);
Tailwind
colors: {
  custom: {
    50: '#c687d9',
    500: '#aa51c8',
    950: '#000000',
  },
}
SCSS
$custom: #aa51c8;
$custom-light: #c687d9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51c8",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 284.874,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59424,
    "c": 0.19049,
    "h": 316.7
  },
  "luminance": 0.18601
}

Semantic roles & 50–950 ramp

primary
#AA51C8
secondary
#AED3A1
accent
#DB4C70
background
#FCF8FD
surface
#F8F0FA
border
#D1CBD3
text
#130C15
muted
#827D83

Preview Lab

Preview with #AA51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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