#AA51E3#AA51E3

#AA51E3 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.1% C 0.218 H 309.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AA51E3
RGBrgb(170, 81, 227)
HSLhsl(277, 72%, 60%)
HSVhsv(277, 64%, 89%)
CMYKcmyk(25.1%, 64.3%, 0%, 11%)
CIE-LABlab(51.81, 60.48, -59.52)
CIE-LCHlch(51.81, 84.86, 315.46°)
OKLaboklab(61.09% 0.1383 -0.1681)
OKLCHoklch(61.09% 0.218 309.4)
XYZxyz(33.3824, 19.9776, 74.7556)
Luminance0.1998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51E3 #8AE351
analogous
#6151E3 #AA51E3 #E351D3
triadic
#AA51E3 #E3AA51 #51E3AA
tetradic
#AA51E3 #E36151 #8AE351 #51D3E3
square
#AA51E3 #E36151 #8AE351 #51D3E3
split-complementary
#AA51E3 #D3E351 #51E361
monochromatic
#6B1AA0 #8F22D5 #AA51E3 #C486EB #DEBAF4

Accessibility & contrast

On white

4.20
#AA51E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#AA51E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51E3
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51E3#FFFFFF#000000##000000
##AA51E31.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#3B7DE0
Tritanopia (blue-blind)
#A26F93
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #aa51e3;
/* rgb */ color: rgb(170, 81, 227);
/* oklch */ color: oklch(61.1% 0.218 309.4);
Tailwind
colors: {
  custom: {
    50: '#c787ed',
    500: '#aa51e3',
    950: '#000000',
  },
}
SCSS
$custom: #aa51e3;
$custom-light: #c787ed;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51e3",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 227
  },
  "hsl": {
    "h": 276.575,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.6109,
    "c": 0.21765,
    "h": 309.4
  },
  "luminance": 0.19977
}

Semantic roles & 50–950 ramp

primary
#AA51E3
secondary
#C2E4AC
accent
#D4115D
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84

Preview Lab

Preview with #AA51E3

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

Preview Lab → · Contrast checker → · Palette generator →

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