#AA7AFE#AA7AFE

#AA7AFE is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.6% C 0.190 H 298.0°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#AA7AFE
RGBrgb(170, 122, 254)
HSLhsl(262, 99%, 74%)
HSVhsv(262, 52%, 100%)
CMYKcmyk(33.1%, 52%, 0%, 0.4%)
CIE-LABlab(61.33, 45.78, -59.31)
CIE-LCHlch(61.33, 74.93, 307.67°)
OKLaboklab(68.56% 0.0891 -0.1676)
OKLCHoklch(68.56% 0.19 298)
XYZxyz(41.4221, 29.6204, 97.2817)
Luminance0.2962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7AFE #CEFE7A
analogous
#7A8CFE #AA7AFE #EC7AFE
triadic
#AA7AFE #FEAA7A #7AFEAA
tetradic
#AA7AFE #FE7A8C #CEFE7A #7AFEEC
square
#AA7AFE #FE7A8C #CEFE7A #7AFEEC
split-complementary
#AA7AFE #FEEC7A #8CFE7A
monochromatic
#5D02FC #833DFE #AA7AFE #D1B7FE #ECE1FF

Accessibility & contrast

On white

3.03
#AA7AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#AA7AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA7AFE
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7AFE#FFFFFF#000000##000000
##AA7AFE1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4794FF
Deuteranopia (green-blind)
#5493FB
Tritanopia (blue-blind)
#9894B1
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #aa7afe;
/* rgb */ color: rgb(170, 122, 254);
/* oklch */ color: oklch(68.6% 0.190 298.0);
Tailwind
colors: {
  custom: {
    50: '#c7a2ff',
    500: '#aa7afe',
    950: '#000000',
  },
}
SCSS
$custom: #aa7afe;
$custom-light: #c7a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7afe",
  "rgb": {
    "r": 170,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 261.818,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.6856,
    "c": 0.18981,
    "h": 298
  },
  "luminance": 0.29621
}

Semantic roles & 50–950 ramp

primary
#AA7AFE
secondary
#EAF7D4
accent
#E60092
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AA7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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