#AB87E7#AB87E7

#AB87E7 is a light, vivid violet. Relative luminance 0.318; OKLCH L 69.6% C 0.141 H 300.0°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#AB87E7
RGBrgb(171, 135, 231)
HSLhsl(263, 67%, 72%)
HSVhsv(263, 42%, 91%)
CMYKcmyk(26%, 41.6%, 0%, 9.4%)
CIE-LABlab(63.14, 33.20, -43.73)
CIE-LCHlch(63.14, 54.90, 307.20°)
OKLaboklab(69.56% 0.0706 -0.1221)
OKLCHoklch(69.56% 0.141 300)
XYZxyz(39.8791, 31.7552, 79.6142)
Luminance0.3175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87E7 #C3E787
analogous
#8793E7 #AB87E7 #DB87E7
triadic
#AB87E7 #E7AB87 #87E7AB
tetradic
#AB87E7 #E78793 #C3E787 #87E7DB
square
#AB87E7 #E78793 #C3E787 #87E7DB
split-complementary
#AB87E7 #E7DB87 #93E787
monochromatic
#6629CB #8754DD #AB87E7 #CFBAF1 #EDE5FA

Accessibility & contrast

On white

2.86
#AB87E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.35
#AB87E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87E7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87E7#FFFFFF#000000##000000
##AB87E71.002.867.357.35
#FFFFFF2.861.0021.0021.00
#0000007.3521.001.001.00
##0000007.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D99EB
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#A097AC
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab87e7;
/* rgb */ color: rgb(171, 135, 231);
/* oklch */ color: oklch(69.6% 0.141 300.0);
Tailwind
colors: {
  custom: {
    50: '#c6aaef',
    500: '#ab87e7',
    950: '#000000',
  },
}
SCSS
$custom: #ab87e7;
$custom-light: #c6aaef;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87e7",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 262.5,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69558,
    "c": 0.1411,
    "h": 300
  },
  "luminance": 0.31755
}

Semantic roles & 50–950 ramp

primary
#AB87E7
secondary
#E8F1D9
accent
#CF178A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AB87E7

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

Preview Lab → · Contrast checker → · Palette generator →

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