#AA8CFB#AA8CFB

#AA8CFB is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.4% C 0.159 H 294.5°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#AA8CFB
RGBrgb(170, 140, 251)
HSLhsl(256, 93%, 77%)
HSVhsv(256, 44%, 98%)
CMYKcmyk(32.3%, 44.2%, 0%, 1.6%)
CIE-LABlab(65.17, 35.03, -51.54)
CIE-LCHlch(65.17, 62.32, 304.20°)
OKLaboklab(71.39% 0.0659 -0.1449)
OKLCHoklch(71.39% 0.159 294.5)
XYZxyz(43.3638, 34.2665, 95.5775)
Luminance0.3427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA8CFB #DDFB8C
analogous
#8CA6FB #AA8CFB #E18CFB
triadic
#AA8CFB #FBAA8C #8CFBAA
tetradic
#AA8CFB #FB8CA6 #DDFB8C #8CFBE1
square
#AA8CFB #FB8CA6 #DDFB8C #8CFBE1
split-complementary
#AA8CFB #FBE18C #A6FB8C
monochromatic
#5316F7 #7E51F9 #AA8CFB #D6C7FD #E9E1FE

Accessibility & contrast

On white

2.67
#AA8CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#AA8CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA8CFB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA8CFB#FFFFFF#000000##000000
##AA8CFB1.002.677.857.85
#FFFFFF2.671.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#689FFF
Deuteranopia (green-blind)
#6D9CF8
Tritanopia (blue-blind)
#98A1B7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #aa8cfb;
/* rgb */ color: rgb(170, 140, 251);
/* oklch */ color: oklch(71.4% 0.159 294.5);
Tailwind
colors: {
  custom: {
    50: '#c6aefd',
    500: '#aa8cfb',
    950: '#000000',
  },
}
SCSS
$custom: #aa8cfb;
$custom-light: #c6aefd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa8cfb",
  "rgb": {
    "r": 170,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 256.216,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.71386,
    "c": 0.15919,
    "h": 294.5
  },
  "luminance": 0.34267
}

Semantic roles & 50–950 ramp

primary
#AA8CFB
secondary
#EDF6D5
accent
#E600A7
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AA8CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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