#AB87EC#AB87EC

#AB87EC is a light, vivid violet. Relative luminance 0.320; OKLCH L 69.8% C 0.148 H 299.0°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#AB87EC
RGBrgb(171, 135, 236)
HSLhsl(261, 73%, 73%)
HSVhsv(261, 43%, 93%)
CMYKcmyk(27.5%, 42.8%, 0%, 7.5%)
CIE-LABlab(63.38, 34.40, -46.12)
CIE-LCHlch(63.38, 57.54, 306.72°)
OKLaboklab(69.81% 0.0715 -0.1291)
OKLCHoklch(69.81% 0.148 299)
XYZxyz(40.5954, 32.0417, 83.3866)
Luminance0.3204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87EC #C8EC87
analogous
#8795EC #AB87EC #DD87EC
triadic
#AB87EC #ECAB87 #87ECAB
tetradic
#AB87EC #EC8795 #C8EC87 #87ECDD
square
#AB87EC #EC8795 #C8EC87 #87ECDD
split-complementary
#AB87EC #ECDD87 #95EC87
monochromatic
#6222D7 #8652E4 #AB87EC #D0BCF4 #EDE5FB

Accessibility & contrast

On white

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

On black

7.41
#AB87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87EC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87EC#FFFFFF#000000##000000
##AB87EC1.002.837.417.41
#FFFFFF2.831.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99F0
Deuteranopia (green-blind)
#7299E9
Tritanopia (blue-blind)
#9E99AE
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ab87ec;
/* rgb */ color: rgb(171, 135, 236);
/* oklch */ color: oklch(69.8% 0.148 299.0);
Tailwind
colors: {
  custom: {
    50: '#c6aaf2',
    500: '#ab87ec',
    950: '#000000',
  },
}
SCSS
$custom: #ab87ec;
$custom-light: #c6aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87ec",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 261.386,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.69814,
    "c": 0.14755,
    "h": 299
  },
  "luminance": 0.32042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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