#AB97FA#AB97FA

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

Color values

HEX#AB97FA
RGBrgb(171, 151, 250)
HSLhsl(252, 91%, 79%)
HSVhsv(252, 40%, 98%)
CMYKcmyk(31.6%, 39.6%, 0%, 2%)
CIE-LABlab(67.79, 28.84, -46.86)
CIE-LCHlch(67.79, 55.02, 301.62°)
OKLaboklab(73.37% 0.0525 -0.1312)
OKLCHoklch(73.37% 0.141 291.8)
XYZxyz(45.1121, 37.6924, 95.3225)
Luminance0.3769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97FA #E6FA97
analogous
#97B4FA #AB97FA #DC97FA
triadic
#AB97FA #FAAB97 #97FAAB
tetradic
#AB97FA #FA97B4 #E6FA97 #97FADC
square
#AB97FA #FA97B4 #E6FA97 #97FADC
split-complementary
#AB97FA #FADC97 #B4FA97
monochromatic
#4D22F4 #7C5DF7 #AB97FA #DAD1FD #E7E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AB97FA#FFFFFF#000000##000000
##AB97FA1.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)
#79A7FE
Deuteranopia (green-blind)
#7BA3F8
Tritanopia (blue-blind)
#99A9BD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ab97fa;
/* rgb */ color: rgb(171, 151, 250);
/* oklch */ color: oklch(73.4% 0.141 291.8);
Tailwind
colors: {
  custom: {
    50: '#c6b5fc',
    500: '#ab97fa',
    950: '#000000',
  },
}
SCSS
$custom: #ab97fa;
$custom-light: #c6b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97fa",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 252.121,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.73374,
    "c": 0.14134,
    "h": 291.8
  },
  "luminance": 0.37693
}

Semantic roles & 50–950 ramp

primary
#AB97FA
secondary
#EFF6D5
accent
#E600B7
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AB97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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