#AB97FD#AB97FD

#AB97FD is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.5% C 0.145 H 291.4°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#AB97FD
RGBrgb(171, 151, 253)
HSLhsl(252, 96%, 79%)
HSVhsv(252, 40%, 99%)
CMYKcmyk(32.4%, 40.3%, 0%, 0.8%)
CIE-LABlab(67.93, 29.60, -48.27)
CIE-LCHlch(67.93, 56.62, 301.52°)
OKLaboklab(73.53% 0.0531 -0.1353)
OKLCHoklch(73.53% 0.145 291.4)
XYZxyz(45.5862, 37.8820, 97.8196)
Luminance0.3788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97FD #E9FD97
analogous
#97B6FD #AB97FD #DE97FD
triadic
#AB97FD #FDAB97 #97FDAB
tetradic
#AB97FD #FD97B6 #E9FD97 #97FDDE
square
#AB97FD #FD97B6 #E9FD97 #97FDDE
split-complementary
#AB97FD #FDDE97 #B6FD97
monochromatic
#4A1FFB #7B5BFC #AB97FD #DBD3FE #E7E1FE

Accessibility & contrast

On white

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

On black

8.58
#AB97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97FD
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97FD#FFFFFF#000000##000000
##AB97FD1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A7FF
Deuteranopia (green-blind)
#79A4FA
Tritanopia (blue-blind)
#98AABE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ab97fd;
/* rgb */ color: rgb(171, 151, 253);
/* oklch */ color: oklch(73.5% 0.145 291.4);
Tailwind
colors: {
  custom: {
    50: '#c6b5fe',
    500: '#ab97fd',
    950: '#000000',
  },
}
SCSS
$custom: #ab97fd;
$custom-light: #c6b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97fd",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 251.765,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73526,
    "c": 0.14536,
    "h": 291.4
  },
  "luminance": 0.37883
}

Semantic roles & 50–950 ramp

primary
#AB97FD
secondary
#F0F7D4
accent
#E600B8
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AB97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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