#AA51E6#AA51E6

#AA51E6 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.3% C 0.221 H 308.7°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AA51E6
RGBrgb(170, 81, 230)
HSLhsl(276, 75%, 61%)
HSVhsv(276, 65%, 90%)
CMYKcmyk(26.1%, 64.8%, 0%, 9.8%)
CIE-LABlab(52.00, 61.13, -60.91)
CIE-LCHlch(52.00, 86.30, 315.11°)
OKLaboklab(61.29% 0.1381 -0.1722)
OKLCHoklch(61.29% 0.221 308.7)
XYZxyz(33.8000, 20.1446, 76.9553)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51E6 #8DE651
analogous
#5F51E6 #AA51E6 #E651D7
triadic
#AA51E6 #E6AA51 #51E6AA
tetradic
#AA51E6 #E65F51 #8DE651 #51D7E6
square
#AA51E6 #E65F51 #8DE651 #51D7E6
split-complementary
#AA51E6 #D7E651 #51E65F
monochromatic
#6C18A5 #8F1FDA #AA51E6 #C487EE #DEBCF5

Accessibility & contrast

On white

4.18
#AA51E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AA51E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51E6
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51E6#FFFFFF#000000##000000
##AA51E61.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#377DE3
Tritanopia (blue-blind)
#A17095
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa51e6;
/* rgb */ color: rgb(170, 81, 230);
/* oklch */ color: oklch(61.3% 0.221 308.7);
Tailwind
colors: {
  custom: {
    50: '#c887ef',
    500: '#aa51e6',
    950: '#000000',
  },
}
SCSS
$custom: #aa51e6;
$custom-light: #c887ef;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51e6",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 275.839,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61286,
    "c": 0.2207,
    "h": 308.7
  },
  "luminance": 0.20144
}

Semantic roles & 50–950 ramp

primary
#AA51E6
secondary
#C4E5AD
accent
#D70E5F
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AA51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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