#AA7AFB#AA7AFB

#AA7AFB is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.4% C 0.186 H 298.5°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#AA7AFB
RGBrgb(170, 122, 251)
HSLhsl(262, 94%, 73%)
HSVhsv(262, 51%, 98%)
CMYKcmyk(32.3%, 51.4%, 0%, 1.6%)
CIE-LABlab(61.16, 45.04, -57.92)
CIE-LCHlch(61.16, 73.38, 307.87°)
OKLaboklab(68.38% 0.0889 -0.1635)
OKLCHoklch(68.38% 0.186 298.5)
XYZxyz(40.9455, 29.4297, 94.7714)
Luminance0.2943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7AFB #CBFB7A
analogous
#7A8AFB #AA7AFB #EB7AFB
triadic
#AA7AFB #FBAA7A #7AFBAA
tetradic
#AA7AFB #FB7A8A #CBFB7A #7AFBEB
square
#AA7AFB #FB7A8A #CBFB7A #7AFBEB
split-complementary
#AA7AFB #FBEB7A #8AFB7A
monochromatic
#5F07F3 #843FF9 #AA7AFB #D0B5FD #ECE1FE

Accessibility & contrast

On white

3.05
#AA7AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#AA7AFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA7AFB
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7AFB#FFFFFF#000000##000000
##AA7AFB1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A94FF
Deuteranopia (green-blind)
#5792F8
Tritanopia (blue-blind)
#9993AF
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #aa7afb;
/* rgb */ color: rgb(170, 122, 251);
/* oklch */ color: oklch(68.4% 0.186 298.5);
Tailwind
colors: {
  custom: {
    50: '#c7a1fd',
    500: '#aa7afb',
    950: '#000000',
  },
}
SCSS
$custom: #aa7afb;
$custom-light: #c7a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7afb",
  "rgb": {
    "r": 170,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 262.326,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68383,
    "c": 0.18616,
    "h": 298.5
  },
  "luminance": 0.2943
}

Semantic roles & 50–950 ramp

primary
#AA7AFB
secondary
#EAF6D5
accent
#E60090
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F18
muted
#827F86

Preview Lab

Preview with #AA7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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