#AA7AF1#AA7AF1

#AA7AF1 is a light, vivid violet. Relative luminance 0.288; OKLCH L 67.8% C 0.174 H 300.5°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#AA7AF1
RGBrgb(170, 122, 241)
HSLhsl(264, 81%, 71%)
HSVhsv(264, 49%, 95%)
CMYKcmyk(29.5%, 49.4%, 0%, 5.5%)
CIE-LABlab(60.62, 42.59, -53.26)
CIE-LCHlch(60.62, 68.20, 308.65°)
OKLaboklab(67.81% 0.0881 -0.1499)
OKLCHoklch(67.81% 0.174 300.5)
XYZxyz(39.4106, 28.8158, 86.6877)
Luminance0.2882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7AF1 #C1F17A
analogous
#7A85F1 #AA7AF1 #E57AF1
triadic
#AA7AF1 #F1AA7A #7AF1AA
tetradic
#AA7AF1 #F17A85 #C1F17A #7AF1E5
square
#AA7AF1 #F17A85 #C1F17A #7AF1E5
split-complementary
#AA7AF1 #F1E57A #85F17A
monochromatic
#6517DA #8743EB #AA7AF1 #CDB1F7 #EDE3FC

Accessibility & contrast

On white

3.11
#AA7AF1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#AA7AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA7AF1
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7AF1#FFFFFF#000000##000000
##AA7AF11.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5392F5
Deuteranopia (green-blind)
#5F91EE
Tritanopia (blue-blind)
#9C90AA
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #aa7af1;
/* rgb */ color: rgb(170, 122, 241);
/* oklch */ color: oklch(67.8% 0.174 300.5);
Tailwind
colors: {
  custom: {
    50: '#c6a1f6',
    500: '#aa7af1',
    950: '#000000',
  },
}
SCSS
$custom: #aa7af1;
$custom-light: #c6a1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7af1",
  "rgb": {
    "r": 170,
    "g": 122,
    "b": 241
  },
  "hsl": {
    "h": 264.202,
    "s": 80.952,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67807,
    "c": 0.17389,
    "h": 300.5
  },
  "luminance": 0.28816
}

Semantic roles & 50–950 ramp

primary
#AA7AF1
secondary
#E6F3D4
accent
#DD0887
background
#FCFAFF
surface
#F8F3FE
border
#D1CDD6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AA7AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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