#AB97F2#AB97F2

#AB97F2 is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.0% C 0.131 H 293.0°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#AB97F2
RGBrgb(171, 151, 242)
HSLhsl(253, 78%, 77%)
HSVhsv(253, 38%, 95%)
CMYKcmyk(29.3%, 37.6%, 0%, 5.1%)
CIE-LABlab(67.43, 26.85, -43.06)
CIE-LCHlch(67.43, 50.74, 301.94°)
OKLaboklab(72.98% 0.051 -0.1202)
OKLCHoklch(72.98% 0.131 293)
XYZxyz(43.8842, 37.2012, 88.8557)
Luminance0.3720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97F2 #DEF297
analogous
#97B1F2 #AB97F2 #D997F2
triadic
#AB97F2 #F2AB97 #97F2AB
tetradic
#AB97F2 #F297B1 #DEF297 #97F2D9
square
#AB97F2 #F297B1 #DEF297 #97F2D9
split-complementary
#AB97F2 #F2D997 #B1F297
monochromatic
#532AE4 #7F61EB #AB97F2 #D7CDF9 #E9E4FC

Accessibility & contrast

On white

2.49
#AB97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#AB97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97F2
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97F2#FFFFFF#000000##000000
##AB97F21.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA5F6
Deuteranopia (green-blind)
#7FA3F0
Tritanopia (blue-blind)
#9BA7B9
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ab97f2;
/* rgb */ color: rgb(171, 151, 242);
/* oklch */ color: oklch(73.0% 0.131 293.0);
Tailwind
colors: {
  custom: {
    50: '#c6b5f6',
    500: '#ab97f2',
    950: '#000000',
  },
}
SCSS
$custom: #ab97f2;
$custom-light: #c6b5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97f2",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 253.187,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.72976,
    "c": 0.13057,
    "h": 293
  },
  "luminance": 0.37202
}

Semantic roles & 50–950 ramp

primary
#AB97F2
secondary
#EDF3D8
accent
#DA0BAD
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131117
muted
#828085

Preview Lab

Preview with #AB97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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