#AB97F9#AB97F9

#AB97F9 is a light, vivid violet. Relative luminance 0.376; OKLCH L 73.3% C 0.140 H 292.0°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#AB97F9
RGBrgb(171, 151, 249)
HSLhsl(252, 89%, 78%)
HSVhsv(252, 39%, 98%)
CMYKcmyk(31.3%, 39.4%, 0%, 2.4%)
CIE-LABlab(67.75, 28.59, -46.38)
CIE-LCHlch(67.75, 54.49, 301.65°)
OKLaboklab(73.32% 0.0523 -0.1298)
OKLCHoklch(73.32% 0.14 292)
XYZxyz(44.9557, 37.6298, 94.4989)
Luminance0.3763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97F9 #E5F997
analogous
#97B4F9 #AB97F9 #DC97F9
triadic
#AB97F9 #F9AB97 #97F9AB
tetradic
#AB97F9 #F997B4 #E5F997 #97F9DC
square
#AB97F9 #F997B4 #E5F997 #97F9DC
split-complementary
#AB97F9 #F9DC97 #B4F997
monochromatic
#4E23F2 #7C5DF6 #AB97F9 #DAD1FC #E8E2FD

Accessibility & contrast

On white

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

On black

8.53
#AB97F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97F9
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97F9#FFFFFF#000000##000000
##AB97F91.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA7FD
Deuteranopia (green-blind)
#7CA3F7
Tritanopia (blue-blind)
#99A9BC
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ab97f9;
/* rgb */ color: rgb(171, 151, 249);
/* oklch */ color: oklch(73.3% 0.140 292.0);
Tailwind
colors: {
  custom: {
    50: '#c6b5fb',
    500: '#ab97f9',
    950: '#000000',
  },
}
SCSS
$custom: #ab97f9;
$custom-light: #c6b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97f9",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 249
  },
  "hsl": {
    "h": 252.245,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.73323,
    "c": 0.14,
    "h": 292
  },
  "luminance": 0.37631
}

Semantic roles & 50–950 ramp

primary
#AB97F9
secondary
#EFF5D6
accent
#E600B7
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AB97F9

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

Preview Lab → · Contrast checker → · Palette generator →

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