#AA7EF8#AA7EF8

#AA7EF8 is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.9% C 0.176 H 298.3°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AA7EF8
RGBrgb(170, 126, 248)
HSLhsl(262, 90%, 73%)
HSVhsv(262, 49%, 97%)
CMYKcmyk(31.5%, 49.2%, 0%, 2.7%)
CIE-LABlab(61.86, 42.10, -55.15)
CIE-LCHlch(61.86, 69.38, 307.36°)
OKLaboklab(68.86% 0.0836 -0.1554)
OKLCHoklch(68.86% 0.176 298.3)
XYZxyz(40.9776, 30.2447, 92.4677)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA7EF8 #CCF87E
analogous
#7E8FF8 #AA7EF8 #E77EF8
triadic
#AA7EF8 #F8AA7E #7EF8AA
tetradic
#AA7EF8 #F87E8F #CCF87E #7EF8E7
square
#AA7EF8 #F87E8F #CCF87E #7EF8E7
split-complementary
#AA7EF8 #F8E77E #8FF87E
monochromatic
#5E0DEF #8444F5 #AA7EF8 #D0B8FB #ECE2FD

Accessibility & contrast

On white

2.98
#AA7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AA7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA7EF8
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA7EF8#FFFFFF#000000##000000
##AA7EF81.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5496FC
Deuteranopia (green-blind)
#5F94F5
Tritanopia (blue-blind)
#9A95AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #aa7ef8;
/* rgb */ color: rgb(170, 126, 248);
/* oklch */ color: oklch(68.9% 0.176 298.3);
Tailwind
colors: {
  custom: {
    50: '#c6a4fb',
    500: '#aa7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #aa7ef8;
$custom-light: #c6a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa7ef8",
  "rgb": {
    "r": 170,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 261.639,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68856,
    "c": 0.17648,
    "h": 298.3
  },
  "luminance": 0.30245
}

Semantic roles & 50–950 ramp

primary
#AA7EF8
secondary
#EAF6D5
accent
#E60093
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #AA7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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