#AB97FC#AB97FC

#AB97FC is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.5% C 0.144 H 291.5°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#AB97FC
RGBrgb(171, 151, 252)
HSLhsl(252, 94%, 79%)
HSVhsv(252, 40%, 99%)
CMYKcmyk(32.1%, 40.1%, 0%, 1.2%)
CIE-LABlab(67.89, 29.35, -47.80)
CIE-LCHlch(67.89, 56.09, 301.55°)
OKLaboklab(73.47% 0.0529 -0.134)
OKLCHoklch(73.47% 0.144 291.5)
XYZxyz(45.4274, 37.8185, 96.9829)
Luminance0.3782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97FC #E8FC97
analogous
#97B6FC #AB97FC #DE97FC
triadic
#AB97FC #FCAB97 #97FCAB
tetradic
#AB97FC #FC97B6 #E8FC97 #97FCDE
square
#AB97FC #FC97B6 #E8FC97 #97FCDE
split-complementary
#AB97FC #FCDE97 #B6FC97
monochromatic
#4B20F9 #7B5CFA #AB97FC #DBD2FE #E7E1FE

Accessibility & contrast

On white

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

On black

8.56
#AB97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97FC
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97FC#FFFFFF#000000##000000
##AB97FC1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab97fc;
/* rgb */ color: rgb(171, 151, 252);
/* oklch */ color: oklch(73.5% 0.144 291.5);
Tailwind
colors: {
  custom: {
    50: '#c6b5fe',
    500: '#ab97fc',
    950: '#000000',
  },
}
SCSS
$custom: #ab97fc;
$custom-light: #c6b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97fc",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 251.881,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.73475,
    "c": 0.14402,
    "h": 291.5
  },
  "luminance": 0.37819
}

Semantic roles & 50–950 ramp

primary
#AB97FC
secondary
#F0F6D5
accent
#E600B8
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AB97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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