#AA5AF7#AA5AF7

#AA5AF7 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.5% C 0.227 H 304.1°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#AA5AF7
RGBrgb(170, 90, 247)
HSLhsl(271, 91%, 66%)
HSVhsv(271, 64%, 97%)
CMYKcmyk(31.2%, 63.6%, 0%, 3.1%)
CIE-LABlab(54.63, 60.70, -66.19)
CIE-LCHlch(54.63, 89.81, 312.52°)
OKLaboklab(63.53% 0.1269 -0.1877)
OKLCHoklch(63.53% 0.227 304.1)
XYZxyz(37.0184, 22.5739, 90.3846)
Luminance0.2257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA5AF7 #A7F75A
analogous
#5B5AF7 #AA5AF7 #F75AF6
triadic
#AA5AF7 #F7AA5A #5AF7AA
tetradic
#AA5AF7 #F75B5A #A7F75A #5AF6F7
square
#AA5AF7 #F75B5A #A7F75A #5AF6F7
split-complementary
#AA5AF7 #F6F75A #5AF75B
monochromatic
#6D0ACD #8C20F4 #AA5AF7 #C894FA #E6CFFD

Accessibility & contrast

On white

3.81
#AA5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#AA5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AA5AF7
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA5AF7#FFFFFF#000000##000000
##AA5AF71.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081FC
Deuteranopia (green-blind)
#2A83F4
Tritanopia (blue-blind)
#9C7CA1
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #aa5af7;
/* rgb */ color: rgb(170, 90, 247);
/* oklch */ color: oklch(63.5% 0.227 304.1);
Tailwind
colors: {
  custom: {
    50: '#c88dfb',
    500: '#aa5af7',
    950: '#000000',
  },
}
SCSS
$custom: #aa5af7;
$custom-light: #c88dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa5af7",
  "rgb": {
    "r": 170,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 270.573,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63526,
    "c": 0.22658,
    "h": 304.1
  },
  "luminance": 0.22574
}

Semantic roles & 50–950 ramp

primary
#AA5AF7
secondary
#D6F0BD
accent
#E60071
background
#FCF8FF
surface
#F9F0FF
border
#D2CBD7
text
#140C17
muted
#827D85

Preview Lab

Preview with #AA5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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