#AB97FF#AB97FF

#AB97FF is a light, vivid violet. Relative luminance 0.380; OKLCH L 73.6% C 0.148 H 291.2°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#AB97FF
RGBrgb(171, 151, 255)
HSLhsl(252, 100%, 80%)
HSVhsv(252, 41%, 100%)
CMYKcmyk(32.9%, 40.8%, 0%, 0%)
CIE-LABlab(68.03, 30.11, -49.21)
CIE-LCHlch(68.03, 57.69, 301.46°)
OKLaboklab(73.63% 0.0534 -0.1381)
OKLCHoklch(73.63% 0.148 291.2)
XYZxyz(45.9065, 38.0101, 99.5064)
Luminance0.3801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97FF #EBFF97
analogous
#97B7FF #AB97FF #DF97FF
triadic
#AB97FF #FFAB97 #97FFAB
tetradic
#AB97FF #FF97B7 #EBFF97 #97FFDF
square
#AB97FF #FF97B7 #EBFF97 #97FFDF
split-complementary
#AB97FF #FFDF97 #B7FF97
monochromatic
#481DFF #7A5AFF #AB97FF #DCD4FF #E6E0FF

Accessibility & contrast

On white

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

On black

8.60
#AB97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97FF
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97FF#FFFFFF#000000##000000
##AB97FF1.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A8FF
Deuteranopia (green-blind)
#78A4FC
Tritanopia (blue-blind)
#97AABF
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ab97ff;
/* rgb */ color: rgb(171, 151, 255);
/* oklch */ color: oklch(73.6% 0.148 291.2);
Tailwind
colors: {
  custom: {
    50: '#c7b5ff',
    500: '#ab97ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab97ff;
$custom-light: #c7b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97ff",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 251.538,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.73629,
    "c": 0.14804,
    "h": 291.2
  },
  "luminance": 0.38011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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