#AA51DC#AA51DC

#AA51DC is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.6% C 0.211 H 311.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AA51DC
RGBrgb(170, 81, 220)
HSLhsl(278, 67%, 59%)
HSVhsv(278, 63%, 86%)
CMYKcmyk(22.7%, 63.2%, 0%, 13.7%)
CIE-LABlab(51.38, 58.97, -56.25)
CIE-LCHlch(51.38, 81.50, 316.35°)
OKLaboklab(60.64% 0.1386 -0.1585)
OKLCHoklch(60.64% 0.211 311.2)
XYZxyz(32.4359, 19.5990, 69.7706)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51DC #83DC51
analogous
#6551DC #AA51DC #DC51C9
triadic
#AA51DC #DCAA51 #51DCAA
tetradic
#AA51DC #DC6551 #83DC51 #51C9DC
square
#AA51DC #DC6551 #83DC51 #51C9DC
split-complementary
#AA51DC #C9DC51 #51DC65
monochromatic
#6A1E95 #8E28C8 #AA51DC #C384E6 #DCB7F0

Accessibility & contrast

On white

4.27
#AA51DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#AA51DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51DC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51DC#FFFFFF#000000##000000
##AA51DC1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0476E0
Deuteranopia (green-blind)
#437CD9
Tritanopia (blue-blind)
#A46C8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa51dc;
/* rgb */ color: rgb(170, 81, 220);
/* oklch */ color: oklch(60.6% 0.211 311.2);
Tailwind
colors: {
  custom: {
    50: '#c787e7',
    500: '#aa51dc',
    950: '#000000',
  },
}
SCSS
$custom: #aa51dc;
$custom-light: #c787e7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51dc",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 278.417,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.60641,
    "c": 0.21057,
    "h": 311.2
  },
  "luminance": 0.19598
}

Semantic roles & 50–950 ramp

primary
#AA51DC
secondary
#BDE0A9
accent
#E93E7C
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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