#AB87E1#AB87E1

#AB87E1 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.3% C 0.133 H 301.4°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#AB87E1
RGBrgb(171, 135, 225)
HSLhsl(264, 60%, 71%)
HSVhsv(264, 40%, 88%)
CMYKcmyk(24%, 40%, 0%, 11.8%)
CIE-LABlab(62.86, 31.77, -40.84)
CIE-LCHlch(62.86, 51.74, 307.88°)
OKLaboklab(69.26% 0.0696 -0.1138)
OKLCHoklch(69.26% 0.133 301.4)
XYZxyz(39.0462, 31.4220, 75.2276)
Luminance0.3142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87E1 #BDE187
analogous
#8790E1 #AB87E1 #D887E1
triadic
#AB87E1 #E1AB87 #87E1AB
tetradic
#AB87E1 #E18790 #BDE187 #87E1D8
square
#AB87E1 #E18790 #BDE187 #87E1D8
split-complementary
#AB87E1 #E1D887 #90E187
monochromatic
#6930BE #8956D5 #AB87E1 #CDB8ED #EEE7F9

Accessibility & contrast

On white

2.88
#AB87E1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#AB87E1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87E1
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87E1#FFFFFF#000000##000000
##AB87E11.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7098E4
Deuteranopia (green-blind)
#7898DF
Tritanopia (blue-blind)
#A196A9
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ab87e1;
/* rgb */ color: rgb(171, 135, 225);
/* oklch */ color: oklch(69.3% 0.133 301.4);
Tailwind
colors: {
  custom: {
    50: '#c5aaeb',
    500: '#ab87e1',
    950: '#000000',
  },
}
SCSS
$custom: #ab87e1;
$custom-light: #c5aaeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87e1",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 225
  },
  "hsl": {
    "h": 264,
    "s": 60,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69257,
    "c": 0.13334,
    "h": 301.4
  },
  "luminance": 0.31422
}

Semantic roles & 50–950 ramp

primary
#AB87E1
secondary
#E4EED6
accent
#C81E84
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AB87E1

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

Preview Lab → · Contrast checker → · Palette generator →

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