#AB97FB#AB97FB

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

Color values

HEX#AB97FB
RGBrgb(171, 151, 251)
HSLhsl(252, 93%, 79%)
HSVhsv(252, 40%, 98%)
CMYKcmyk(31.9%, 39.8%, 0%, 1.6%)
CIE-LABlab(67.84, 29.09, -47.33)
CIE-LCHlch(67.84, 55.56, 301.58°)
OKLaboklab(73.42% 0.0527 -0.1326)
OKLCHoklch(73.42% 0.143 291.7)
XYZxyz(45.2693, 37.7553, 96.1505)
Luminance0.3776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97FB #E7FB97
analogous
#97B5FB #AB97FB #DD97FB
triadic
#AB97FB #FBAB97 #97FBAB
tetradic
#AB97FB #FB97B5 #E7FB97 #97FBDD
square
#AB97FB #FB97B5 #E7FB97 #97FBDD
split-complementary
#AB97FB #FBDD97 #B5FB97
monochromatic
#4C21F6 #7B5CF9 #AB97FB #DBD2FD #E7E2FE

Accessibility & contrast

On white

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

On black

8.55
#AB97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97FB
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97FB#FFFFFF#000000##000000
##AB97FB1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A7FF
Deuteranopia (green-blind)
#7AA3F9
Tritanopia (blue-blind)
#98A9BD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ab97fb;
/* rgb */ color: rgb(171, 151, 251);
/* oklch */ color: oklch(73.4% 0.143 291.7);
Tailwind
colors: {
  custom: {
    50: '#c6b5fd',
    500: '#ab97fb',
    950: '#000000',
  },
}
SCSS
$custom: #ab97fb;
$custom-light: #c6b5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97fb",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 252,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73424,
    "c": 0.14268,
    "h": 291.7
  },
  "luminance": 0.37756
}

Semantic roles & 50–950 ramp

primary
#AB97FB
secondary
#EFF6D5
accent
#E600B8
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AB97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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