#AB87FF#AB87FF

#AB87FF is a light, vivid violet. Relative luminance 0.332; OKLCH L 70.8% C 0.172 H 295.5°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#AB87FF
RGBrgb(171, 135, 255)
HSLhsl(258, 100%, 76%)
HSVhsv(258, 47%, 100%)
CMYKcmyk(32.9%, 47.1%, 0%, 0%)
CIE-LABlab(64.33, 39.09, -55.07)
CIE-LCHlch(64.33, 67.54, 305.37°)
OKLaboklab(70.84% 0.074 -0.1552)
OKLCHoklch(70.84% 0.172 295.5)
XYZxyz(43.5040, 33.2052, 98.7056)
Luminance0.3321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87FF #DBFF87
analogous
#879FFF #AB87FF #E787FF
triadic
#AB87FF #FFAB87 #87FFAB
tetradic
#AB87FF #FF879F #DBFF87 #87FFE7
square
#AB87FF #FF879F #DBFF87 #87FFE7
split-complementary
#AB87FF #FFE787 #9FFF87
monochromatic
#550DFF #804AFF #AB87FF #D6C4FF #EAE0FF

Accessibility & contrast

On white

2.75
#AB87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#AB87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87FF
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87FF#FFFFFF#000000##000000
##AB87FF1.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9DFF
Deuteranopia (green-blind)
#659AFC
Tritanopia (blue-blind)
#989EB7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab87ff;
/* rgb */ color: rgb(171, 135, 255);
/* oklch */ color: oklch(70.8% 0.172 295.5);
Tailwind
colors: {
  custom: {
    50: '#c7aaff',
    500: '#ab87ff',
    950: '#000000',
  },
}
SCSS
$custom: #ab87ff;
$custom-light: #c7aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87ff",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 258,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.70837,
    "c": 0.17192,
    "h": 295.5
  },
  "luminance": 0.33206
}

Semantic roles & 50–950 ramp

primary
#AB87FF
secondary
#EDF7D4
accent
#E600A1
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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