#AA56DB#AA56DB

#AA56DB is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.2% C 0.203 H 310.9°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AA56DB
RGBrgb(170, 86, 219)
HSLhsl(278, 65%, 60%)
HSVhsv(278, 61%, 86%)
CMYKcmyk(22.4%, 60.7%, 0%, 14.1%)
CIE-LABlab(52.19, 56.38, -54.38)
CIE-LCHlch(52.19, 78.33, 316.03°)
OKLaboklab(61.21% 0.1328 -0.1531)
OKLCHoklch(61.21% 0.203 310.9)
XYZxyz(32.6892, 20.3168, 69.2036)
Luminance0.2032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA56DB #87DB56
analogous
#6856DB #AA56DB #DB56C9
triadic
#AA56DB #DBAA56 #56DBAA
tetradic
#AA56DB #DB6856 #87DB56 #56C9DB
square
#AA56DB #DB6856 #87DB56 #56C9DB
split-complementary
#AA56DB #C9DB56 #56DB68
monochromatic
#6B2097 #8F2BC9 #AA56DB #C388E6 #DDBBF0

Accessibility & contrast

On white

4.15
#AA56DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AA56DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA56DB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA56DB#FFFFFF#000000##000000
##AA56DB1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F78DF
Deuteranopia (green-blind)
#497ED8
Tritanopia (blue-blind)
#A46F91
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #aa56db;
/* rgb */ color: rgb(170, 86, 219);
/* oklch */ color: oklch(61.2% 0.203 310.9);
Tailwind
colors: {
  custom: {
    50: '#c78ae7',
    500: '#aa56db',
    950: '#000000',
  },
}
SCSS
$custom: #aa56db;
$custom-light: #c78ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa56db",
  "rgb": {
    "r": 170,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 277.895,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.6121,
    "c": 0.20261,
    "h": 310.9
  },
  "luminance": 0.20316
}

Semantic roles & 50–950 ramp

primary
#AA56DB
secondary
#C0E0AD
accent
#E8407E
background
#FCF8FE
surface
#F9F0FC
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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