#AA8DEC#AA8DEC

#AA8DEC is a light, vivid violet. Relative luminance 0.337; OKLCH L 70.8% C 0.138 H 296.8°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#AA8DEC
RGBrgb(170, 141, 236)
HSLhsl(258, 71%, 74%)
HSVhsv(258, 40%, 93%)
CMYKcmyk(28%, 40.3%, 0%, 7.5%)
CIE-LABlab(64.69, 30.74, -44.07)
CIE-LCHlch(64.69, 53.74, 304.90°)
OKLaboklab(70.78% 0.0622 -0.1232)
OKLCHoklch(70.78% 0.138 296.8)
XYZxyz(41.2392, 33.6515, 83.6633)
Luminance0.3365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA8DEC #CFEC8D
analogous
#8DA0EC #AA8DEC #DA8DEC
triadic
#AA8DEC #ECAA8D #8DECAA
tetradic
#AA8DEC #EC8DA0 #CFEC8D #8DECDA
square
#AA8DEC #EC8DA0 #CFEC8D #8DECDA
split-complementary
#AA8DEC #ECDA8D #A0EC8D
monochromatic
#5C24DA #8359E3 #AA8DEC #D1C1F5 #EBE5FB

Accessibility & contrast

On white

2.72
#AA8DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#AA8DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA8DEC
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA8DEC#FFFFFF#000000##000000
##AA8DEC1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#729DF0
Deuteranopia (green-blind)
#779CEA
Tritanopia (blue-blind)
#9C9EB1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #aa8dec;
/* rgb */ color: rgb(170, 141, 236);
/* oklch */ color: oklch(70.8% 0.138 296.8);
Tailwind
colors: {
  custom: {
    50: '#c5aef2',
    500: '#aa8dec',
    950: '#000000',
  },
}
SCSS
$custom: #aa8dec;
$custom-light: #c5aef2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa8dec",
  "rgb": {
    "r": 170,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 258.316,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70781,
    "c": 0.13796,
    "h": 296.8
  },
  "luminance": 0.33652
}

Semantic roles & 50–950 ramp

primary
#AA8DEC
secondary
#EAF2D9
accent
#D31298
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AA8DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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