#AA51E8#AA51E8

#AA51E8 is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.4% C 0.223 H 308.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AA51E8
RGBrgb(170, 81, 232)
HSLhsl(275, 77%, 61%)
HSVhsv(275, 65%, 91%)
CMYKcmyk(26.7%, 65.1%, 0%, 9%)
CIE-LABlab(52.13, 61.57, -61.83)
CIE-LCHlch(52.13, 87.26, 314.88°)
OKLaboklab(61.42% 0.1379 -0.1749)
OKLCHoklch(61.42% 0.223 308.3)
XYZxyz(34.0825, 20.2576, 78.4429)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51E8 #8FE851
analogous
#5F51E8 #AA51E8 #E851DB
triadic
#AA51E8 #E8AA51 #51E8AA
tetradic
#AA51E8 #E85F51 #8FE851 #51DBE8
square
#AA51E8 #E85F51 #8FE851 #51DBE8
split-complementary
#AA51E8 #DBE851 #51E85F
monochromatic
#6C16A8 #8F1DDE #AA51E8 #C487EF #DFBDF6

Accessibility & contrast

On white

4.16
#AA51E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#AA51E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51E8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51E8#FFFFFF#000000##000000
##AA51E81.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079ED
Deuteranopia (green-blind)
#347DE5
Tritanopia (blue-blind)
#A17196
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa51e8;
/* rgb */ color: rgb(170, 81, 232);
/* oklch */ color: oklch(61.4% 0.223 308.3);
Tailwind
colors: {
  custom: {
    50: '#c887f0',
    500: '#aa51e8',
    950: '#000000',
  },
}
SCSS
$custom: #aa51e8;
$custom-light: #c887f0;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51e8",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 275.364,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.61417,
    "c": 0.22272,
    "h": 308.3
  },
  "luminance": 0.20257
}

Semantic roles & 50–950 ramp

primary
#AA51E8
secondary
#C5E7AE
accent
#D90D60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AA51E8

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

Preview Lab → · Contrast checker → · Palette generator →

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