#AB97EA#AB97EA

#AB97EA is a light, moderate violet. Relative luminance 0.367; OKLCH L 72.6% C 0.120 H 294.3°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#AB97EA
RGBrgb(171, 151, 234)
HSLhsl(254, 66%, 75%)
HSVhsv(254, 35%, 92%)
CMYKcmyk(26.9%, 35.5%, 0%, 8.2%)
CIE-LABlab(67.07, 24.89, -39.22)
CIE-LCHlch(67.07, 46.45, 302.40°)
OKLaboklab(72.59% 0.0493 -0.1091)
OKLCHoklch(72.59% 0.12 294.3)
XYZxyz(42.7089, 36.7311, 82.6656)
Luminance0.3673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97EA #D6EA97
analogous
#97ACEA #AB97EA #D497EA
triadic
#AB97EA #EAAB97 #97EAAB
tetradic
#AB97EA #EA97AC #D6EA97 #97EAD4
square
#AB97EA #EA97AC #D6EA97 #97EAD4
split-complementary
#AB97EA #EAD497 #ACEA97
monochromatic
#5931D5 #8264E0 #AB97EA #D4CAF4 #EAE6FA

Accessibility & contrast

On white

2.52
#AB97EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#AB97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97EA
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97EA#FFFFFF#000000##000000
##AB97EA1.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A4ED
Deuteranopia (green-blind)
#83A2E8
Tritanopia (blue-blind)
#9EA5B6
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ab97ea;
/* rgb */ color: rgb(171, 151, 234);
/* oklch */ color: oklch(72.6% 0.120 294.3);
Tailwind
colors: {
  custom: {
    50: '#c5b5f1',
    500: '#ab97ea',
    950: '#000000',
  },
}
SCSS
$custom: #ab97ea;
$custom-light: #c5b5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97ea",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 254.458,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.72591,
    "c": 0.11973,
    "h": 294.3
  },
  "luminance": 0.36732
}

Semantic roles & 50–950 ramp

primary
#AB97EA
secondary
#ECF1DA
accent
#CE17A2
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AB97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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