#AA51E4#AA51E4

#AA51E4 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.2% C 0.219 H 309.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#AA51E4
RGBrgb(170, 81, 228)
HSLhsl(276, 73%, 61%)
HSVhsv(276, 64%, 89%)
CMYKcmyk(25.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(51.87, 60.70, -59.98)
CIE-LCHlch(51.87, 85.34, 315.34°)
OKLaboklab(61.16% 0.1382 -0.1695)
OKLCHoklch(61.16% 0.219 309.2)
XYZxyz(33.5208, 20.0329, 75.4846)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51E4 #8BE451
analogous
#6151E4 #AA51E4 #E451D4
triadic
#AA51E4 #E4AA51 #51E4AA
tetradic
#AA51E4 #E46151 #8BE451 #51D4E4
square
#AA51E4 #E46151 #8BE451 #51D4E4
split-complementary
#AA51E4 #D4E451 #51E461
monochromatic
#6C19A2 #8F21D7 #AA51E4 #C486EC #DEBBF4

Accessibility & contrast

On white

4.19
#AA51E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#AA51E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51E4
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51E4#FFFFFF#000000##000000
##AA51E41.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#397DE1
Tritanopia (blue-blind)
#A26F94
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa51e4;
/* rgb */ color: rgb(170, 81, 228);
/* oklch */ color: oklch(61.2% 0.219 309.2);
Tailwind
colors: {
  custom: {
    50: '#c787ed',
    500: '#aa51e4',
    950: '#000000',
  },
}
SCSS
$custom: #aa51e4;
$custom-light: #c787ed;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51e4",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 276.327,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.61155,
    "c": 0.21868,
    "h": 309.2
  },
  "luminance": 0.20032
}

Semantic roles & 50–950 ramp

primary
#AA51E4
secondary
#C3E4AC
accent
#D5105E
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AA51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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