#AA51D8#AA51D8

#AA51D8 is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.4% C 0.207 H 312.2°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#AA51D8
RGBrgb(170, 81, 216)
HSLhsl(280, 63%, 58%)
HSVhsv(280, 63%, 85%)
CMYKcmyk(21.3%, 62.5%, 0%, 15.3%)
CIE-LABlab(51.14, 58.12, -54.37)
CIE-LCHlch(51.14, 79.58, 316.91°)
OKLaboklab(60.39% 0.1388 -0.153)
OKLCHoklch(60.39% 0.207 312.2)
XYZxyz(31.9124, 19.3896, 67.0139)
Luminance0.1939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51D8 #7FD851
analogous
#6751D8 #AA51D8 #D851C2
triadic
#AA51D8 #D8AA51 #51D8AA
tetradic
#AA51D8 #D86751 #7FD851 #51C2D8
square
#AA51D8 #D86751 #7FD851 #51C2D8
split-complementary
#AA51D8 #C2D851 #51D867
monochromatic
#69208F #8E2BC1 #AA51D8 #C283E3 #DBB5EE

Accessibility & contrast

On white

4.31
#AA51D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#AA51D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51D8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51D8#FFFFFF#000000##000000
##AA51D81.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1475DC
Deuteranopia (green-blind)
#467CD5
Tritanopia (blue-blind)
#A56B8D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa51d8;
/* rgb */ color: rgb(170, 81, 216);
/* oklch */ color: oklch(60.4% 0.207 312.2);
Tailwind
colors: {
  custom: {
    50: '#c787e5',
    500: '#aa51d8',
    950: '#000000',
  },
}
SCSS
$custom: #aa51d8;
$custom-light: #c787e5;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51d8",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 279.556,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.60389,
    "c": 0.20654,
    "h": 312.2
  },
  "luminance": 0.19389
}

Semantic roles & 50–950 ramp

primary
#AA51D8
secondary
#BADDA8
accent
#E6417A
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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