#AB97F7#AB97F7

#AB97F7 is a light, vivid violet. Relative luminance 0.375; OKLCH L 73.2% C 0.137 H 292.2°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#AB97F7
RGBrgb(171, 151, 247)
HSLhsl(253, 86%, 78%)
HSVhsv(253, 39%, 97%)
CMYKcmyk(30.8%, 38.9%, 0%, 3.1%)
CIE-LABlab(67.65, 28.09, -45.44)
CIE-LCHlch(67.65, 53.42, 301.73°)
OKLaboklab(73.22% 0.052 -0.1271)
OKLCHoklch(73.22% 0.137 292.2)
XYZxyz(44.6454, 37.5057, 92.8648)
Luminance0.3751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97F7 #E3F797
analogous
#97B3F7 #AB97F7 #DB97F7
triadic
#AB97F7 #F7AB97 #97F7AB
tetradic
#AB97F7 #F797B3 #E3F797 #97F7DB
square
#AB97F7 #F797B3 #E3F797 #97F7DB
split-complementary
#AB97F7 #F7DB97 #B3F797
monochromatic
#4F25EE #7D5EF3 #AB97F7 #D9D0FB #E8E3FD

Accessibility & contrast

On white

2.47
#AB97F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.50
#AB97F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97F7
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97F7#FFFFFF#000000##000000
##AB97F71.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA6FB
Deuteranopia (green-blind)
#7DA3F5
Tritanopia (blue-blind)
#9AA8BB
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ab97f7;
/* rgb */ color: rgb(171, 151, 247);
/* oklch */ color: oklch(73.2% 0.137 292.2);
Tailwind
colors: {
  custom: {
    50: '#c6b5fa',
    500: '#ab97f7',
    950: '#000000',
  },
}
SCSS
$custom: #ab97f7;
$custom-light: #c6b5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97f7",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 252.5,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.73223,
    "c": 0.13731,
    "h": 292.2
  },
  "luminance": 0.37507
}

Semantic roles & 50–950 ramp

primary
#AB97F7
secondary
#EEF5D6
accent
#E203B4
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AB97F7

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

Preview Lab → · Contrast checker → · Palette generator →

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