#AA7EF5#AA7EF5

#AA7EF5 is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.7% C 0.173 H 298.8°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AA7EF5
RGBrgb(170, 126, 245)
HSLhsl(262, 86%, 73%)
HSVhsv(262, 49%, 96%)
CMYKcmyk(30.6%, 48.6%, 0%, 3.9%)
CIE-LABlab(61.71, 41.36, -53.75)
CIE-LCHlch(61.71, 67.82, 307.58°)
OKLaboklab(68.69% 0.0833 -0.1513)
OKLCHoklch(68.69% 0.173 298.8)
XYZxyz(40.5159, 30.0600, 90.0361)
Luminance0.3006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7EF5 #C9F57E
analogous
#7E8DF5 #AA7EF5 #E67EF5
triadic
#AA7EF5 #F5AA7E #7EF5AA
tetradic
#AA7EF5 #F57E8D #C9F57E #7EF5E6
square
#AA7EF5 #F57E8D #C9F57E #7EF5E6
split-complementary
#AA7EF5 #F5E67E #8DF57E
monochromatic
#6112E7 #8545F1 #AA7EF5 #CFB7F9 #ECE3FD

Accessibility & contrast

On white

2.99
#AA7EF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.01
#AA7EF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA7EF5
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7EF5#FFFFFF#000000##000000
##AA7EF51.002.997.017.01
#FFFFFF2.991.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5695F9
Deuteranopia (green-blind)
#6194F2
Tritanopia (blue-blind)
#9A94AE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #aa7ef5;
/* rgb */ color: rgb(170, 126, 245);
/* oklch */ color: oklch(68.7% 0.173 298.8);
Tailwind
colors: {
  custom: {
    50: '#c6a4f9',
    500: '#aa7ef5',
    950: '#000000',
  },
}
SCSS
$custom: #aa7ef5;
$custom-light: #c6a4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7ef5",
  "rgb": {
    "r": 170,
    "g": 126,
    "b": 245
  },
  "hsl": {
    "h": 262.185,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68686,
    "c": 0.17275,
    "h": 298.8
  },
  "luminance": 0.3006
}

Semantic roles & 50–950 ramp

primary
#AA7EF5
secondary
#E9F5D6
accent
#E20390
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AA7EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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