#AB97E2#AB97E2

#AB97E2 is a light, moderate violet. Relative luminance 0.363; OKLCH L 72.2% C 0.109 H 295.8°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#AB97E2
RGBrgb(171, 151, 226)
HSLhsl(256, 56%, 74%)
HSVhsv(256, 33%, 89%)
CMYKcmyk(24.3%, 33.2%, 0%, 11.4%)
CIE-LABlab(66.73, 22.97, -35.35)
CIE-LCHlch(66.73, 42.15, 303.01°)
OKLaboklab(72.22% 0.0474 -0.098)
OKLCHoklch(72.22% 0.109 295.8)
XYZxyz(41.5855, 36.2817, 76.7489)
Luminance0.3628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97E2 #CEE297
analogous
#97A9E2 #AB97E2 #D197E2
triadic
#AB97E2 #E2AB97 #97E2AB
tetradic
#AB97E2 #E297A9 #CEE297 #97E2D1
square
#AB97E2 #E297A9 #CEE297 #97E2D1
split-complementary
#AB97E2 #E2D197 #A9E297
monochromatic
#5E38C7 #8467D5 #AB97E2 #D2C7EF #ECE7F8

Accessibility & contrast

On white

2.54
#AB97E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#AB97E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97E2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97E2#FFFFFF#000000##000000
##AB97E21.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A3E5
Deuteranopia (green-blind)
#87A1E0
Tritanopia (blue-blind)
#A0A3B2
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ab97e2;
/* rgb */ color: rgb(171, 151, 226);
/* oklch */ color: oklch(72.2% 0.109 295.8);
Tailwind
colors: {
  custom: {
    50: '#c5b5eb',
    500: '#ab97e2',
    950: '#000000',
  },
}
SCSS
$custom: #ab97e2;
$custom-light: #c5b5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97e2",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 256,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72219,
    "c": 0.10884,
    "h": 295.8
  },
  "luminance": 0.36282
}

Semantic roles & 50–950 ramp

primary
#AB97E2
secondary
#EAF0DB
accent
#C42299
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AB97E2

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

Preview Lab → · Contrast checker → · Palette generator →

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