#AA51DD#AA51DD

#AA51DD is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.7% C 0.212 H 310.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AA51DD
RGBrgb(170, 81, 221)
HSLhsl(278, 67%, 59%)
HSVhsv(278, 63%, 87%)
CMYKcmyk(23.1%, 63.3%, 0%, 13.3%)
CIE-LABlab(51.44, 59.19, -56.72)
CIE-LCHlch(51.44, 81.98, 316.22°)
OKLaboklab(60.7% 0.1386 -0.1599)
OKLCHoklch(60.7% 0.212 310.9)
XYZxyz(32.5687, 19.6521, 70.4701)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51DD #84DD51
analogous
#6451DD #AA51DD #DD51CA
triadic
#AA51DD #DDAA51 #51DDAA
tetradic
#AA51DD #DD6451 #84DD51 #51CADD
square
#AA51DD #DD6451 #84DD51 #51CADD
split-complementary
#AA51DD #CADD51 #51DD64
monochromatic
#6A1D96 #8E27C9 #AA51DD #C384E7 #DCB7F1

Accessibility & contrast

On white

4.26
#AA51DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AA51DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51DD
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51DD#FFFFFF#000000##000000
##AA51DD1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E1
Deuteranopia (green-blind)
#417CDA
Tritanopia (blue-blind)
#A46D90
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #aa51dd;
/* rgb */ color: rgb(170, 81, 221);
/* oklch */ color: oklch(60.7% 0.212 310.9);
Tailwind
colors: {
  custom: {
    50: '#c787e8',
    500: '#aa51dd',
    950: '#000000',
  },
}
SCSS
$custom: #aa51dd;
$custom-light: #c787e8;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51dd",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 278.143,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.60704,
    "c": 0.21159,
    "h": 310.9
  },
  "luminance": 0.19651
}

Semantic roles & 50–950 ramp

primary
#AA51DD
secondary
#BDE0AA
accent
#EA3E7C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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