#AB87EE#AB87EE

#AB87EE is a light, vivid violet. Relative luminance 0.322; OKLCH L 69.9% C 0.150 H 298.6°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#AB87EE
RGBrgb(171, 135, 238)
HSLhsl(261, 75%, 73%)
HSVhsv(261, 43%, 93%)
CMYKcmyk(28.2%, 43.3%, 0%, 6.7%)
CIE-LABlab(63.47, 34.89, -47.08)
CIE-LCHlch(63.47, 58.59, 306.54°)
OKLaboklab(69.92% 0.0718 -0.1318)
OKLCHoklch(69.92% 0.15 298.6)
XYZxyz(40.8875, 32.1586, 84.9254)
Luminance0.3216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87EE #CAEE87
analogous
#8796EE #AB87EE #DE87EE
triadic
#AB87EE #EEAB87 #87EEAB
tetradic
#AB87EE #EE8796 #CAEE87 #87EEDE
square
#AB87EE #EE8796 #CAEE87 #87EEDE
split-complementary
#AB87EE #EEDE87 #96EE87
monochromatic
#611FDC #8551E6 #AB87EE #D1BDF6 #ECE4FB

Accessibility & contrast

On white

2.83
#AB87EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#AB87EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87EE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87EE#FFFFFF#000000##000000
##AB87EE1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#699AF2
Deuteranopia (green-blind)
#7099EB
Tritanopia (blue-blind)
#9E99AF
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab87ee;
/* rgb */ color: rgb(171, 135, 238);
/* oklch */ color: oklch(69.9% 0.150 298.6);
Tailwind
colors: {
  custom: {
    50: '#c6aaf4',
    500: '#ab87ee',
    950: '#000000',
  },
}
SCSS
$custom: #ab87ee;
$custom-light: #c6aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87ee",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 260.971,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.69919,
    "c": 0.15013,
    "h": 298.6
  },
  "luminance": 0.32159
}

Semantic roles & 50–950 ramp

primary
#AB87EE
secondary
#EAF3D8
accent
#D70E91
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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