#AA51FF#AA51FF

#AA51FF is a light, highly saturated violet. Relative luminance 0.217; OKLCH L 63.0% C 0.246 H 303.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#AA51FF
RGBrgb(170, 81, 255)
HSLhsl(271, 100%, 66%)
HSVhsv(271, 68%, 100%)
CMYKcmyk(33.3%, 68.2%, 0%, 0%)
CIE-LABlab(53.65, 66.70, -72.21)
CIE-LCHlch(53.65, 98.30, 312.73°)
OKLaboklab(63% 0.1354 -0.2054)
OKLCHoklch(63% 0.246 303.4)
XYZxyz(37.5658, 21.6509, 96.7883)
Luminance0.2165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51FF #A6FF51
analogous
#5351FF #AA51FF #FF51FD
triadic
#AA51FF #FFAA51 #51FFAA
tetradic
#AA51FF #FF5351 #A6FF51 #51FDFF
square
#AA51FF #FF5351 #A6FF51 #51FDFF
split-complementary
#AA51FF #FDFF51 #51FF53
monochromatic
#6D00D6 #8C14FF #AA51FF #C88EFF #E6CBFF

Accessibility & contrast

On white

3.94
#AA51FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#AA51FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51FF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51FF#FFFFFF#000000##000000
##AA51FF1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0080FB
Tritanopia (blue-blind)
#9979A2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #aa51ff;
/* rgb */ color: rgb(170, 81, 255);
/* oklch */ color: oklch(63.0% 0.246 303.4);
Tailwind
colors: {
  custom: {
    50: '#c988ff',
    500: '#aa51ff',
    950: '#000000',
  },
}
SCSS
$custom: #aa51ff;
$custom-light: #c988ff;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51ff",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 270.69,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62995,
    "c": 0.246,
    "h": 303.4
  },
  "luminance": 0.21651
}

Semantic roles & 50–950 ramp

primary
#AA51FF
secondary
#D5F3B9
accent
#E60070
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C18
muted
#827D86

Preview Lab

Preview with #AA51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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