#AB97DF#AB97DF

#AB97DF is a light, moderate violet. Relative luminance 0.361; OKLCH L 72.1% C 0.105 H 296.4°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#AB97DF
RGBrgb(171, 151, 223)
HSLhsl(257, 53%, 73%)
HSVhsv(257, 32%, 87%)
CMYKcmyk(23.3%, 32.3%, 0%, 12.5%)
CIE-LABlab(66.61, 22.26, -33.88)
CIE-LCHlch(66.61, 40.54, 303.30°)
OKLaboklab(72.08% 0.0466 -0.0938)
OKLCHoklch(72.08% 0.105 296.4)
XYZxyz(41.1774, 36.1185, 74.5999)
Luminance0.3612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97DF #CBDF97
analogous
#97A7DF #AB97DF #CF97DF
triadic
#AB97DF #DFAB97 #97DFAB
tetradic
#AB97DF #DF97A7 #CBDF97 #97DFCF
square
#AB97DF #DF97A7 #CBDF97 #97DFCF
split-complementary
#AB97DF #DFCF97 #A7DF97
monochromatic
#603BC0 #8568D1 #AB97DF #D1C6ED #ECE8F8

Accessibility & contrast

On white

2.55
#AB97DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#AB97DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97DF
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97DF#FFFFFF#000000##000000
##AB97DF1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A2E2
Deuteranopia (green-blind)
#88A1DD
Tritanopia (blue-blind)
#A1A3B1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #ab97df;
/* rgb */ color: rgb(171, 151, 223);
/* oklch */ color: oklch(72.1% 0.105 296.4);
Tailwind
colors: {
  custom: {
    50: '#c5b5e9',
    500: '#ab97df',
    950: '#000000',
  },
}
SCSS
$custom: #ab97df;
$custom-light: #c5b5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97df",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 256.667,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72083,
    "c": 0.10475,
    "h": 296.4
  },
  "luminance": 0.36119
}

Semantic roles & 50–950 ramp

primary
#AB97DF
secondary
#EAEFDC
accent
#C02595
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AB97DF

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

Preview Lab → · Contrast checker → · Palette generator →

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