#AA7AF5#AA7AF5

#AA7AF5 is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.0% C 0.179 H 299.7°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#AA7AF5
RGBrgb(170, 122, 245)
HSLhsl(263, 86%, 72%)
HSVhsv(263, 50%, 96%)
CMYKcmyk(30.6%, 50.2%, 0%, 3.9%)
CIE-LABlab(60.83, 43.57, -55.14)
CIE-LCHlch(60.83, 70.27, 308.31°)
OKLaboklab(68.04% 0.0885 -0.1554)
OKLCHoklch(68.04% 0.179 299.7)
XYZxyz(40.0146, 29.0574, 89.8690)
Luminance0.2906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7AF5 #C5F57A
analogous
#7A88F5 #AA7AF5 #E87AF5
triadic
#AA7AF5 #F5AA7A #7AF5AA
tetradic
#AA7AF5 #F57A88 #C5F57A #7AF5E8
square
#AA7AF5 #F57A88 #C5F57A #7AF5E8
split-complementary
#AA7AF5 #F5E87A #88F57A
monochromatic
#6311E3 #8641F1 #AA7AF5 #CEB3F9 #EDE3FD

Accessibility & contrast

On white

3.08
#AA7AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#AA7AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA7AF5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7AF5#FFFFFF#000000##000000
##AA7AF51.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F93F9
Deuteranopia (green-blind)
#5C92F2
Tritanopia (blue-blind)
#9B91AC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #aa7af5;
/* rgb */ color: rgb(170, 122, 245);
/* oklch */ color: oklch(68.0% 0.179 299.7);
Tailwind
colors: {
  custom: {
    50: '#c6a1f9',
    500: '#aa7af5',
    950: '#000000',
  },
}
SCSS
$custom: #aa7af5;
$custom-light: #c6a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7af5",
  "rgb": {
    "r": 170,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 263.415,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68035,
    "c": 0.17881,
    "h": 299.7
  },
  "luminance": 0.29058
}

Semantic roles & 50–950 ramp

primary
#AA7AF5
secondary
#E9F5D6
accent
#E3038B
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AA7AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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