#AB87EA#AB87EA

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

Color values

HEX#AB87EA
RGBrgb(171, 135, 234)
HSLhsl(262, 70%, 72%)
HSVhsv(262, 42%, 92%)
CMYKcmyk(26.9%, 42.3%, 0%, 8.2%)
CIE-LABlab(63.28, 33.92, -45.17)
CIE-LCHlch(63.28, 56.49, 306.90°)
OKLaboklab(69.71% 0.0712 -0.1263)
OKLCHoklch(69.71% 0.145 299.4)
XYZxyz(40.3064, 31.9261, 81.8648)
Luminance0.3193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87EA #C6EA87
analogous
#8795EA #AB87EA #DC87EA
triadic
#AB87EA #EAAB87 #87EAAB
tetradic
#AB87EA #EA8795 #C6EA87 #87EADC
square
#AB87EA #EA8795 #C6EA87 #87EADC
split-complementary
#AB87EA #EADC87 #95EA87
monochromatic
#6425D2 #8753E1 #AB87EA #CFBBF3 #EDE5FA

Accessibility & contrast

On white

2.84
#AB87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.39
#AB87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87EA
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87EA#FFFFFF#000000##000000
##AB87EA1.002.847.397.39
#FFFFFF2.841.0021.0021.00
#0000007.3921.001.001.00
##0000007.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ab87ea;
/* rgb */ color: rgb(171, 135, 234);
/* oklch */ color: oklch(69.7% 0.145 299.4);
Tailwind
colors: {
  custom: {
    50: '#c6aaf1',
    500: '#ab87ea',
    950: '#000000',
  },
}
SCSS
$custom: #ab87ea;
$custom-light: #c6aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87ea",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 261.818,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69711,
    "c": 0.14497,
    "h": 299.4
  },
  "luminance": 0.31926
}

Semantic roles & 50–950 ramp

primary
#AB87EA
secondary
#E9F2D9
accent
#D2138D
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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