#AA51DB#AA51DB

#AA51DB is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.6% C 0.210 H 311.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#AA51DB
RGBrgb(170, 81, 219)
HSLhsl(279, 66%, 59%)
HSVhsv(279, 63%, 86%)
CMYKcmyk(22.4%, 63%, 0%, 14.1%)
CIE-LABlab(51.32, 58.76, -55.78)
CIE-LCHlch(51.32, 81.02, 316.49°)
OKLaboklab(60.58% 0.1387 -0.1571)
OKLCHoklch(60.58% 0.21 311.4)
XYZxyz(32.3038, 19.5461, 69.0752)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA51DB #82DB51
analogous
#6551DB #AA51DB #DB51C7
triadic
#AA51DB #DBAA51 #51DBAA
tetradic
#AA51DB #DB6551 #82DB51 #51C7DB
square
#AA51DB #DB6551 #82DB51 #51C7DB
split-complementary
#AA51DB #C7DB51 #51DB65
monochromatic
#6A1E93 #8E29C6 #AA51DB #C384E5 #DCB6F0

Accessibility & contrast

On white

4.28
#AA51DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#AA51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA51DB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA51DB#FFFFFF#000000##000000
##AA51DB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0976DF
Deuteranopia (green-blind)
#447CD8
Tritanopia (blue-blind)
#A46C8F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #aa51db;
/* rgb */ color: rgb(170, 81, 219);
/* oklch */ color: oklch(60.6% 0.210 311.4);
Tailwind
colors: {
  custom: {
    50: '#c787e7',
    500: '#aa51db',
    950: '#000000',
  },
}
SCSS
$custom: #aa51db;
$custom-light: #c787e7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa51db",
  "rgb": {
    "r": 170,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 278.696,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60577,
    "c": 0.20957,
    "h": 311.4
  },
  "luminance": 0.19545
}

Semantic roles & 50–950 ramp

primary
#AA51DB
secondary
#BCDFA9
accent
#E93F7B
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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