#AB8EFE#AB8EFE

#AB8EFE is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.0% C 0.160 H 293.9°. Best body text is #000000 at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#AB8EFE
RGBrgb(171, 142, 254)
HSLhsl(256, 98%, 78%)
HSVhsv(256, 44%, 100%)
CMYKcmyk(32.7%, 44.1%, 0%, 0.4%)
CIE-LABlab(65.87, 34.92, -52.07)
CIE-LCHlch(65.87, 62.70, 303.85°)
OKLaboklab(71.98% 0.0649 -0.1464)
OKLCHoklch(71.98% 0.16 293.9)
XYZxyz(44.3524, 35.1589, 98.1963)
Luminance0.3516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB8EFE #E1FE8E
analogous
#8EA9FE #AB8EFE #E38EFE
triadic
#AB8EFE #FEAB8E #8EFEAB
tetradic
#AB8EFE #FE8EA9 #E1FE8E #8EFEE3
square
#AB8EFE #FE8EA9 #E1FE8E #8EFEE3
split-complementary
#AB8EFE #FEE38E #A9FE8E
monochromatic
#5115FD #7E51FD #AB8EFE #D8CBFF #E8E1FF

Accessibility & contrast

On white

2.61
#AB8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.03
#AB8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB8EFE
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB8EFE#FFFFFF#000000##000000
##AB8EFE1.002.618.038.03
#FFFFFF2.611.0021.0021.00
#0000008.0321.001.001.00
##0000008.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#6E9EFB
Tritanopia (blue-blind)
#98A3BA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ab8efe;
/* rgb */ color: rgb(171, 142, 254);
/* oklch */ color: oklch(72.0% 0.160 293.9);
Tailwind
colors: {
  custom: {
    50: '#c7afff',
    500: '#ab8efe',
    950: '#000000',
  },
}
SCSS
$custom: #ab8efe;
$custom-light: #c7afff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab8efe",
  "rgb": {
    "r": 171,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 255.536,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.71982,
    "c": 0.16015,
    "h": 293.9
  },
  "luminance": 0.3516
}

Semantic roles & 50–950 ramp

primary
#AB8EFE
secondary
#EEF7D4
accent
#E600AA
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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