#AB87E9#AB87E9

#AB87E9 is a light, vivid violet. Relative luminance 0.319; OKLCH L 69.7% C 0.144 H 299.6°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#AB87E9
RGBrgb(171, 135, 233)
HSLhsl(262, 69%, 72%)
HSVhsv(262, 42%, 91%)
CMYKcmyk(26.6%, 42.1%, 0%, 8.6%)
CIE-LABlab(63.23, 33.68, -44.69)
CIE-LCHlch(63.23, 55.96, 307.00°)
OKLaboklab(69.66% 0.071 -0.1249)
OKLCHoklch(69.66% 0.144 299.6)
XYZxyz(40.1632, 31.8688, 81.1104)
Luminance0.3187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87E9 #C5E987
analogous
#8794E9 #AB87E9 #DC87E9
triadic
#AB87E9 #E9AB87 #87E9AB
tetradic
#AB87E9 #E98794 #C5E987 #87E9DC
square
#AB87E9 #E98794 #C5E987 #87E9DC
split-complementary
#AB87E9 #E9DC87 #94E987
monochromatic
#6426D0 #8753E0 #AB87E9 #CFBBF2 #EDE5FA

Accessibility & contrast

On white

2.85
#AB87E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#AB87E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87E9
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87E9#FFFFFF#000000##000000
##AB87E91.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C99ED
Deuteranopia (green-blind)
#7398E6
Tritanopia (blue-blind)
#9F98AD
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab87e9;
/* rgb */ color: rgb(171, 135, 233);
/* oklch */ color: oklch(69.7% 0.144 299.6);
Tailwind
colors: {
  custom: {
    50: '#c6aaf0',
    500: '#ab87e9',
    950: '#000000',
  },
}
SCSS
$custom: #ab87e9;
$custom-light: #c6aaf0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87e9",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 262.041,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.6966,
    "c": 0.14368,
    "h": 299.6
  },
  "luminance": 0.31869
}

Semantic roles & 50–950 ramp

primary
#AB87E9
secondary
#E9F2D9
accent
#D1158C
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AB87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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