#AA56EB#AA56EB

#AA56EB is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.2% C 0.219 H 307.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#AA56EB
RGBrgb(170, 86, 235)
HSLhsl(274, 79%, 63%)
HSVhsv(274, 63%, 92%)
CMYKcmyk(27.7%, 63.4%, 0%, 7.8%)
CIE-LABlab(53.17, 59.89, -61.84)
CIE-LCHlch(53.17, 86.09, 314.08°)
OKLaboklab(62.23% 0.1322 -0.1749)
OKLCHoklch(62.23% 0.219 307.1)
XYZxyz(34.8976, 21.2002, 80.8348)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA56EB #97EB56
analogous
#6056EB #AA56EB #EB56E1
triadic
#AA56EB #EBAA56 #56EBAA
tetradic
#AA56EB #EB6056 #97EB56 #56E1EB
square
#AA56EB #EB6056 #97EB56 #56E1EB
split-complementary
#AA56EB #E1EB56 #56EB60
monochromatic
#6D15B2 #8E1FE5 #AA56EB #C68DF1 #E1C3F8

Accessibility & contrast

On white

4.01
#AA56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#AA56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA56EB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA56EB#FFFFFF#000000##000000
##AA56EB1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#3780E8
Tritanopia (blue-blind)
#9F7599
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #aa56eb;
/* rgb */ color: rgb(170, 86, 235);
/* oklch */ color: oklch(62.2% 0.219 307.1);
Tailwind
colors: {
  custom: {
    50: '#c88af2',
    500: '#aa56eb',
    950: '#000000',
  },
}
SCSS
$custom: #aa56eb;
$custom-light: #c88af2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa56eb",
  "rgb": {
    "r": 170,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 273.826,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.62228,
    "c": 0.21924,
    "h": 307.1
  },
  "luminance": 0.212
}

Semantic roles & 50–950 ramp

primary
#AA56EB
secondary
#CBE9B4
accent
#DB0A65
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C17
muted
#827D85

Preview Lab

Preview with #AA56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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