#AB97E5#AB97E5

#AB97E5 is a light, moderate violet. Relative luminance 0.364; OKLCH L 72.4% C 0.113 H 295.2°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#AB97E5
RGBrgb(171, 151, 229)
HSLhsl(255, 60%, 75%)
HSVhsv(255, 34%, 90%)
CMYKcmyk(25.3%, 34.1%, 0%, 10.2%)
CIE-LABlab(66.86, 23.68, -36.80)
CIE-LCHlch(66.86, 43.76, 302.76°)
OKLaboklab(72.36% 0.0481 -0.1022)
OKLCHoklch(72.36% 0.113 295.2)
XYZxyz(42.0007, 36.4478, 78.9359)
Luminance0.3645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97E5 #D1E597
analogous
#97AAE5 #AB97E5 #D297E5
triadic
#AB97E5 #E5AB97 #97E5AB
tetradic
#AB97E5 #E597AA #D1E597 #97E5D2
square
#AB97E5 #E597AA #D1E597 #97E5D2
split-complementary
#AB97E5 #E5D297 #AAE597
monochromatic
#5C35CD #8366D9 #AB97E5 #D3C8F1 #EBE7F9

Accessibility & contrast

On white

2.53
#AB97E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.29
#AB97E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97E5
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97E5#FFFFFF#000000##000000
##AB97E51.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A3E8
Deuteranopia (green-blind)
#86A2E3
Tritanopia (blue-blind)
#9FA4B4
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ab97e5;
/* rgb */ color: rgb(171, 151, 229);
/* oklch */ color: oklch(72.4% 0.113 295.2);
Tailwind
colors: {
  custom: {
    50: '#c5b5ed',
    500: '#ab97e5',
    950: '#000000',
  },
}
SCSS
$custom: #ab97e5;
$custom-light: #c5b5ed;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97e5",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 229
  },
  "hsl": {
    "h": 255.385,
    "s": 60,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72357,
    "c": 0.11293,
    "h": 295.2
  },
  "luminance": 0.36448
}

Semantic roles & 50–950 ramp

primary
#AB97E5
secondary
#EBF0DB
accent
#C81E9C
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AB97E5

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

Preview Lab → · Contrast checker → · Palette generator →

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