#AB97DA#AB97DA

#AB97DA is a light, moderate violet. Relative luminance 0.359; OKLCH L 71.9% C 0.098 H 297.6°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AB97DA
RGBrgb(171, 151, 218)
HSLhsl(258, 48%, 72%)
HSVhsv(258, 31%, 85%)
CMYKcmyk(21.6%, 30.7%, 0%, 14.5%)
CIE-LABlab(66.41, 21.09, -31.43)
CIE-LCHlch(66.41, 37.85, 303.85°)
OKLaboklab(71.86% 0.0454 -0.0868)
OKLCHoklch(71.86% 0.098 297.6)
XYZxyz(40.5133, 35.8528, 71.1020)
Luminance0.3585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97DA #C6DA97
analogous
#97A5DA #AB97DA #CC97DA
triadic
#AB97DA #DAAB97 #97DAAB
tetradic
#AB97DA #DA97A5 #C6DA97 #97DACC
square
#AB97DA #DA97A5 #C6DA97 #97DACC
split-complementary
#AB97DA #DACC97 #A5DA97
monochromatic
#6441B6 #876ACA #AB97DA #CFC4EA #EDE8F7

Accessibility & contrast

On white

2.57
#AB97DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AB97DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97DA
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97DA#FFFFFF#000000##000000
##AB97DA1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A2DD
Deuteranopia (green-blind)
#8AA1D8
Tritanopia (blue-blind)
#A2A2AF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #ab97da;
/* rgb */ color: rgb(171, 151, 218);
/* oklch */ color: oklch(71.9% 0.098 297.6);
Tailwind
colors: {
  custom: {
    50: '#c5b5e5',
    500: '#ab97da',
    950: '#000000',
  },
}
SCSS
$custom: #ab97da;
$custom-light: #c5b5e5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97da",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 218
  },
  "hsl": {
    "h": 257.91,
    "s": 47.518,
    "l": 72.353
  },
  "oklch": {
    "l": 0.7186,
    "c": 0.09792,
    "h": 297.6
  },
  "luminance": 0.35853
}

Semantic roles & 50–950 ramp

primary
#AB97DA
secondary
#E9EEDD
accent
#BB2B90
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AB97DA

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

Preview Lab → · Contrast checker → · Palette generator →

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