#AB97EF#AB97EF

#AB97EF is a light, vivid violet. Relative luminance 0.370; OKLCH L 72.8% C 0.127 H 293.4°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#AB97EF
RGBrgb(171, 151, 239)
HSLhsl(254, 73%, 76%)
HSVhsv(254, 37%, 94%)
CMYKcmyk(28.5%, 36.8%, 0%, 6.3%)
CIE-LABlab(67.29, 26.11, -41.62)
CIE-LCHlch(67.29, 49.13, 302.10°)
OKLaboklab(72.83% 0.0503 -0.1161)
OKLCHoklch(72.83% 0.127 293.4)
XYZxyz(43.4373, 37.0225, 86.5022)
Luminance0.3702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB97EF #DBEF97
analogous
#97AFEF #AB97EF #D797EF
triadic
#AB97EF #EFAB97 #97EFAB
tetradic
#AB97EF #EF97AF #DBEF97 #97EFD7
square
#AB97EF #EF97AF #DBEF97 #97EFD7
split-complementary
#AB97EF #EFD797 #AFEF97
monochromatic
#552DDF #8062E7 #AB97EF #D6CCF7 #EAE4FB

Accessibility & contrast

On white

2.50
#AB97EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#AB97EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB97EF
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB97EF#FFFFFF#000000##000000
##AB97EF1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA5F2
Deuteranopia (green-blind)
#81A2ED
Tritanopia (blue-blind)
#9CA6B8
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ab97ef;
/* rgb */ color: rgb(171, 151, 239);
/* oklch */ color: oklch(72.8% 0.127 293.4);
Tailwind
colors: {
  custom: {
    50: '#c6b5f4',
    500: '#ab97ef',
    950: '#000000',
  },
}
SCSS
$custom: #ab97ef;
$custom-light: #c6b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab97ef",
  "rgb": {
    "r": 171,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 253.636,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7283,
    "c": 0.12651,
    "h": 293.4
  },
  "luminance": 0.37023
}

Semantic roles & 50–950 ramp

primary
#AB97EF
secondary
#EDF3D8
accent
#D510A9
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085

Preview Lab

Preview with #AB97EF

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

Preview Lab → · Contrast checker → · Palette generator →

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