#AA7AF2#AA7AF2

#AA7AF2 is a light, vivid violet. Relative luminance 0.289; OKLCH L 67.9% C 0.175 H 300.3°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#AA7AF2
RGBrgb(170, 122, 242)
HSLhsl(264, 82%, 71%)
HSVhsv(264, 50%, 95%)
CMYKcmyk(29.8%, 49.6%, 0%, 5.1%)
CIE-LABlab(60.67, 42.83, -53.73)
CIE-LCHlch(60.67, 68.72, 308.56°)
OKLaboklab(67.86% 0.0882 -0.1513)
OKLCHoklch(67.86% 0.175 300.3)
XYZxyz(39.5604, 28.8757, 87.4766)
Luminance0.2888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7AF2 #C2F27A
analogous
#7A86F2 #AA7AF2 #E67AF2
triadic
#AA7AF2 #F2AA7A #7AF2AA
tetradic
#AA7AF2 #F27A86 #C2F27A #7AF2E6
square
#AA7AF2 #F27A86 #C2F27A #7AF2E6
split-complementary
#AA7AF2 #F2E67A #86F27A
monochromatic
#6516DC #8642ED #AA7AF2 #CEB2F7 #EDE3FC

Accessibility & contrast

On white

3.10
#AA7AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#AA7AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA7AF2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7AF2#FFFFFF#000000##000000
##AA7AF21.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5292F6
Deuteranopia (green-blind)
#5E92EF
Tritanopia (blue-blind)
#9C90AB
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #aa7af2;
/* rgb */ color: rgb(170, 122, 242);
/* oklch */ color: oklch(67.9% 0.175 300.3);
Tailwind
colors: {
  custom: {
    50: '#c6a1f7',
    500: '#aa7af2',
    950: '#000000',
  },
}
SCSS
$custom: #aa7af2;
$custom-light: #c6a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7af2",
  "rgb": {
    "r": 170,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 264,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.67863,
    "c": 0.17512,
    "h": 300.3
  },
  "luminance": 0.28876
}

Semantic roles & 50–950 ramp

primary
#AA7AF2
secondary
#E7F3D4
accent
#DF0788
background
#FCFAFF
surface
#F8F3FF
border
#D1CDD7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AA7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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