#AA51E2#AA51E2

#AA51E2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 61.0% C 0.217 H 309.7°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AA51E2
RGBrgb(170, 81, 226)
HSLhsl(277, 71%, 60%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(24.8%, 64.2%, 0%, 11.4%)
CIE-LABlab(51.75, 60.26, -59.06)
CIE-LCHlch(51.75, 84.38, 315.58°)
OKLaboklab(61.03% 0.1383 -0.1667)
OKLCHoklch(61.03% 0.217 309.7)
XYZxyz(33.2448, 19.9225, 74.0309)
Luminance0.1992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51E2 #89E251
analogous
#6251E2 #AA51E2 #E251D1
triadic
#AA51E2 #E2AA51 #51E2AA
tetradic
#AA51E2 #E26251 #89E251 #51D1E2
square
#AA51E2 #E26251 #89E251 #51D1E2
split-complementary
#AA51E2 #D1E251 #51E262
monochromatic
#6B1A9E #8F23D3 #AA51E2 #C485EB #DDBAF3

Accessibility & contrast

On white

4.21
#AA51E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#AA51E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51E2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51E2#FFFFFF#000000##000000
##AA51E21.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E6
Deuteranopia (green-blind)
#3C7DDF
Tritanopia (blue-blind)
#A26E93
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #aa51e2;
/* rgb */ color: rgb(170, 81, 226);
/* oklch */ color: oklch(61.0% 0.217 309.7);
Tailwind
colors: {
  custom: {
    50: '#c787ec',
    500: '#aa51e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa51e2;
$custom-light: #c787ec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51e2",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 276.828,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.61025,
    "c": 0.21664,
    "h": 309.7
  },
  "luminance": 0.19922
}

Semantic roles & 50–950 ramp

primary
#AA51E2
secondary
#C1E3AC
accent
#D3125D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA51E2

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

Preview Lab → · Contrast checker → · Palette generator →

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