#AA56E2#AA56E2

#AA56E2 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.6% C 0.210 H 309.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AA56E2
RGBrgb(170, 86, 226)
HSLhsl(276, 71%, 61%)
HSVhsv(276, 62%, 89%)
CMYKcmyk(24.8%, 61.9%, 0%, 11.4%)
CIE-LABlab(52.61, 57.90, -57.67)
CIE-LCHlch(52.61, 81.72, 315.12°)
OKLaboklab(61.65% 0.1326 -0.1627)
OKLCHoklch(61.65% 0.21 309.2)
XYZxyz(33.6301, 20.6932, 74.1593)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA56E2 #8EE256
analogous
#6456E2 #AA56E2 #E256D4
triadic
#AA56E2 #E2AA56 #56E2AA
tetradic
#AA56E2 #E26456 #8EE256 #56D4E2
square
#AA56E2 #E26456 #8EE256 #56D4E2
split-complementary
#AA56E2 #D4E256 #56E264
monochromatic
#6C1CA2 #8F25D6 #AA56E2 #C48AEB #DFBEF4

Accessibility & contrast

On white

4.09
#AA56E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AA56E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA56E2
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA56E2#FFFFFF#000000##000000
##AA56E21.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7AE6
Deuteranopia (green-blind)
#427FDF
Tritanopia (blue-blind)
#A27294
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #aa56e2;
/* rgb */ color: rgb(170, 86, 226);
/* oklch */ color: oklch(61.6% 0.210 309.2);
Tailwind
colors: {
  custom: {
    50: '#c78aec',
    500: '#aa56e2',
    950: '#000000',
  },
}
SCSS
$custom: #aa56e2;
$custom-light: #c78aec;
$custom-dark: #000000;
JSON
{
  "hex": "#aa56e2",
  "rgb": {
    "r": 170,
    "g": 86,
    "b": 226
  },
  "hsl": {
    "h": 276,
    "s": 70.707,
    "l": 61.176
  },
  "oklch": {
    "l": 0.61648,
    "c": 0.20988,
    "h": 309.2
  },
  "luminance": 0.20693
}

Semantic roles & 50–950 ramp

primary
#AA56E2
secondary
#C5E4B0
accent
#D31360
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #AA56E2

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

Preview Lab → · Contrast checker → · Palette generator →

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