#AB97FE#AB97FE

#AB97FE is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.6% C 0.147 H 291.3°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AB97FE
RGBrgb(171, 151, 254)
HSLhsl(252, 98%, 79%)
HSVhsv(252, 41%, 100%)
CMYKcmyk(32.7%, 40.6%, 0%, 0.4%)
CIE-LABlab(67.98, 29.85, -48.74)
CIE-LCHlch(67.98, 57.16, 301.49°)
OKLaboklab(73.58% 0.0532 -0.1367)
OKLCHoklch(73.58% 0.147 291.3)
XYZxyz(45.7460, 37.9459, 98.6608)
Luminance0.3795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97FE #EAFE97
analogous
#97B7FE #AB97FE #DE97FE
triadic
#AB97FE #FEAB97 #97FEAB
tetradic
#AB97FE #FE97B7 #EAFE97 #97FEDE
square
#AB97FE #FE97B7 #EAFE97 #97FEDE
split-complementary
#AB97FE #FEDE97 #B7FE97
monochromatic
#491EFD #7A5AFD #AB97FE #DCD4FF #E7E1FF

Accessibility & contrast

On white

2.44
#AB97FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#AB97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97FE
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97FE#FFFFFF#000000##000000
##AB97FE1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#79A4FB
Tritanopia (blue-blind)
#97AABE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ab97fe;
/* rgb */ color: rgb(171, 151, 254);
/* oklch */ color: oklch(73.6% 0.147 291.3);
Tailwind
colors: {
  custom: {
    50: '#c7b5ff',
    500: '#ab97fe',
    950: '#000000',
  },
}
SCSS
$custom: #ab97fe;
$custom-light: #c7b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97fe",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 251.65,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.73578,
    "c": 0.1467,
    "h": 291.3
  },
  "luminance": 0.37947
}

Semantic roles & 50–950 ramp

primary
#AB97FE
secondary
#F0F7D4
accent
#E600B9
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AB97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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