#AA98EC#AA98EC

#AA98EC is a light, vivid violet. Relative luminance 0.371; OKLCH L 72.8% C 0.121 H 293.0°. Best body text is #000000 at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#AA98EC
RGBrgb(170, 152, 236)
HSLhsl(253, 69%, 76%)
HSVhsv(253, 36%, 93%)
CMYKcmyk(28%, 35.6%, 0%, 7.5%)
CIE-LABlab(67.32, 24.53, -39.94)
CIE-LCHlch(67.32, 46.87, 301.55°)
OKLaboklab(72.79% 0.0472 -0.1112)
OKLCHoklch(72.79% 0.121 293)
XYZxyz(42.9424, 37.0580, 84.2311)
Luminance0.3706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA98EC #DAEC98
analogous
#98B0EC #AA98EC #D498EC
triadic
#AA98EC #ECAA98 #98ECAA
tetradic
#AA98EC #EC98B0 #DAEC98 #98ECD4
square
#AA98EC #EC98B0 #DAEC98 #98ECD4
split-complementary
#AA98EC #ECD498 #B0EC98
monochromatic
#5531D9 #7F64E2 #AA98EC #D5CCF6 #EAE5FA

Accessibility & contrast

On white

2.50
#AA98EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.41
#AA98EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA98EC
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA98EC#FFFFFF#000000##000000
##AA98EC1.002.508.418.41
#FFFFFF2.501.0021.0021.00
#0000008.4121.001.001.00
##0000008.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A5EF
Deuteranopia (green-blind)
#83A2EA
Tritanopia (blue-blind)
#9CA7B7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #aa98ec;
/* rgb */ color: rgb(170, 152, 236);
/* oklch */ color: oklch(72.8% 0.121 293.0);
Tailwind
colors: {
  custom: {
    50: '#c5b6f2',
    500: '#aa98ec',
    950: '#000000',
  },
}
SCSS
$custom: #aa98ec;
$custom-light: #c5b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#aa98ec",
  "rgb": {
    "r": 170,
    "g": 152,
    "b": 236
  },
  "hsl": {
    "h": 252.857,
    "s": 68.852,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72787,
    "c": 0.12083,
    "h": 293
  },
  "luminance": 0.37059
}

Semantic roles & 50–950 ramp

primary
#AA98EC
secondary
#EDF2D9
accent
#D115A8
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AA98EC

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

Preview Lab → · Contrast checker → · Palette generator →

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