#AA98F8#AA98F8

#AA98F8 is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.4% C 0.137 H 291.2°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#AA98F8
RGBrgb(170, 152, 248)
HSLhsl(251, 87%, 78%)
HSVhsv(251, 39%, 97%)
CMYKcmyk(31.5%, 38.7%, 0%, 2.7%)
CIE-LABlab(67.86, 27.51, -45.67)
CIE-LCHlch(67.86, 53.31, 301.06°)
OKLaboklab(73.37% 0.0497 -0.1278)
OKLCHoklch(73.37% 0.137 291.2)
XYZxyz(44.7447, 37.7789, 93.7234)
Luminance0.3778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA98F8 #E6F898
analogous
#98B6F8 #AA98F8 #DA98F8
triadic
#AA98F8 #F8AA98 #98F8AA
tetradic
#AA98F8 #F898B6 #E6F898 #98F8DA
square
#AA98F8 #F898B6 #E6F898 #98F8DA
split-complementary
#AA98F8 #F8DA98 #B6F898
monochromatic
#4B25F0 #7B5FF4 #AA98F8 #D9D1FC #E7E2FD

Accessibility & contrast

On white

2.45
#AA98F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#AA98F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA98F8
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA98F8#FFFFFF#000000##000000
##AA98F81.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA7FC
Deuteranopia (green-blind)
#7DA3F6
Tritanopia (blue-blind)
#98A9BC
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #aa98f8;
/* rgb */ color: rgb(170, 152, 248);
/* oklch */ color: oklch(73.4% 0.137 291.2);
Tailwind
colors: {
  custom: {
    50: '#c5b6fb',
    500: '#aa98f8',
    950: '#000000',
  },
}
SCSS
$custom: #aa98f8;
$custom-light: #c5b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#aa98f8",
  "rgb": {
    "r": 170,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 251.25,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.73372,
    "c": 0.13712,
    "h": 291.2
  },
  "luminance": 0.3778
}

Semantic roles & 50–950 ramp

primary
#AA98F8
secondary
#EFF5D6
accent
#E402B9
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AA98F8

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

Preview Lab → · Contrast checker → · Palette generator →

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