#AA51E7#AA51E7

#AA51E7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.4% C 0.222 H 308.5°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AA51E7
RGBrgb(170, 81, 231)
HSLhsl(276, 76%, 61%)
HSVhsv(276, 65%, 91%)
CMYKcmyk(26.4%, 64.9%, 0%, 9.4%)
CIE-LABlab(52.06, 61.35, -61.37)
CIE-LCHlch(52.06, 86.78, 314.99°)
OKLaboklab(61.35% 0.138 -0.1735)
OKLCHoklch(61.35% 0.222 308.5)
XYZxyz(33.9409, 20.2010, 77.6970)
Luminance0.2020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51E7 #8EE751
analogous
#5F51E7 #AA51E7 #E751D9
triadic
#AA51E7 #E7AA51 #51E7AA
tetradic
#AA51E7 #E75F51 #8EE751 #51D9E7
square
#AA51E7 #E75F51 #8EE751 #51D9E7
split-complementary
#AA51E7 #D9E751 #51E75F
monochromatic
#6C17A7 #8F1EDC #AA51E7 #C487EE #DFBDF6

Accessibility & contrast

On white

4.17
#AA51E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#AA51E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51E7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51E7#FFFFFF#000000##000000
##AA51E71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#367DE4
Tritanopia (blue-blind)
#A17095
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa51e7;
/* rgb */ color: rgb(170, 81, 231);
/* oklch */ color: oklch(61.4% 0.222 308.5);
Tailwind
colors: {
  custom: {
    50: '#c887ef',
    500: '#aa51e7',
    950: '#000000',
  },
}
SCSS
$custom: #aa51e7;
$custom-light: #c887ef;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51e7",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 275.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61351,
    "c": 0.22171,
    "h": 308.5
  },
  "luminance": 0.202
}

Semantic roles & 50–950 ramp

primary
#AA51E7
secondary
#C5E6AE
accent
#D80E60
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AA51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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