#AA98F7#AA98F7

#AA98F7 is a light, vivid violet. Relative luminance 0.377; OKLCH L 73.3% C 0.136 H 291.4°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#AA98F7
RGBrgb(170, 152, 247)
HSLhsl(251, 86%, 78%)
HSVhsv(251, 38%, 97%)
CMYKcmyk(31.2%, 38.5%, 0%, 3.1%)
CIE-LABlab(67.81, 27.25, -45.20)
CIE-LCHlch(67.81, 52.78, 301.09°)
OKLaboklab(73.32% 0.0495 -0.1264)
OKLCHoklch(73.32% 0.136 291.4)
XYZxyz(44.5900, 37.7170, 92.9085)
Luminance0.3772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AA98F7 #E5F798
analogous
#98B5F7 #AA98F7 #D998F7
triadic
#AA98F7 #F7AA98 #98F7AA
tetradic
#AA98F7 #F798B5 #E5F798 #98F7D9
square
#AA98F7 #F798B5 #E5F798 #98F7D9
split-complementary
#AA98F7 #F7D998 #B5F798
monochromatic
#4C26EE #7B5FF3 #AA98F7 #D9D1FB #E8E3FD

Accessibility & contrast

On white

2.46
#AA98F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#AA98F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AA98F7
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AA98F7#FFFFFF#000000##000000
##AA98F71.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #aa98f7;
/* rgb */ color: rgb(170, 152, 247);
/* oklch */ color: oklch(73.3% 0.136 291.4);
Tailwind
colors: {
  custom: {
    50: '#c5b6fa',
    500: '#aa98f7',
    950: '#000000',
  },
}
SCSS
$custom: #aa98f7;
$custom-light: #c5b6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#aa98f7",
  "rgb": {
    "r": 170,
    "g": 152,
    "b": 247
  },
  "hsl": {
    "h": 251.368,
    "s": 85.586,
    "l": 78.235
  },
  "oklch": {
    "l": 0.73322,
    "c": 0.13577,
    "h": 291.4
  },
  "luminance": 0.37718
}

Semantic roles & 50–950 ramp

primary
#AA98F7
secondary
#EFF5D6
accent
#E203B8
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AA98F7

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

Preview Lab → · Contrast checker → · Palette generator →

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