#AB97EB#AB97EB

#AB97EB is a light, vivid violet. Relative luminance 0.368; OKLCH L 72.6% C 0.121 H 294.1°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#AB97EB
RGBrgb(171, 151, 235)
HSLhsl(254, 68%, 76%)
HSVhsv(254, 36%, 92%)
CMYKcmyk(27.2%, 35.7%, 0%, 7.8%)
CIE-LABlab(67.12, 25.13, -39.70)
CIE-LCHlch(67.12, 46.99, 302.33°)
OKLaboklab(72.64% 0.0495 -0.1105)
OKLCHoklch(72.64% 0.121 294.1)
XYZxyz(42.8530, 36.7887, 83.4244)
Luminance0.3679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97EB #D7EB97
analogous
#97ADEB #AB97EB #D597EB
triadic
#AB97EB #EBAB97 #97EBAB
tetradic
#AB97EB #EB97AD #D7EB97 #97EBD5
square
#AB97EB #EB97AD #D7EB97 #97EBD5
split-complementary
#AB97EB #EBD597 #ADEB97
monochromatic
#5830D7 #8264E1 #AB97EB #D4CAF5 #EAE5FA

Accessibility & contrast

On white

2.51
#AB97EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#AB97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97EB
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97EB#FFFFFF#000000##000000
##AB97EB1.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A4EE
Deuteranopia (green-blind)
#83A2E9
Tritanopia (blue-blind)
#9DA5B6
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ab97eb;
/* rgb */ color: rgb(171, 151, 235);
/* oklch */ color: oklch(72.6% 0.121 294.1);
Tailwind
colors: {
  custom: {
    50: '#c5b5f1',
    500: '#ab97eb',
    950: '#000000',
  },
}
SCSS
$custom: #ab97eb;
$custom-light: #c5b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97eb",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 254.286,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.72638,
    "c": 0.12109,
    "h": 294.1
  },
  "luminance": 0.36789
}

Semantic roles & 50–950 ramp

primary
#AB97EB
secondary
#ECF2D9
accent
#D016A3
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AB97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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