#AB87FC#AB87FC

#AB87FC is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.7% C 0.168 H 296.0°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#AB87FC
RGBrgb(171, 135, 252)
HSLhsl(258, 95%, 76%)
HSVhsv(258, 46%, 99%)
CMYKcmyk(32.1%, 46.4%, 0%, 1.2%)
CIE-LABlab(64.17, 38.34, -53.67)
CIE-LCHlch(64.17, 65.96, 305.54°)
OKLaboklab(70.67% 0.0737 -0.1511)
OKLCHoklch(70.67% 0.168 296)
XYZxyz(43.0249, 33.0135, 96.1821)
Luminance0.3301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87FC #D8FC87
analogous
#879DFC #AB87FC #E687FC
triadic
#AB87FC #FCAB87 #87FCAB
tetradic
#AB87FC #FC879D #D8FC87 #87FCE6
square
#AB87FC #FC879D #D8FC87 #87FCE6
split-complementary
#AB87FC #FCE687 #9DFC87
monochromatic
#5710F9 #814BFB #AB87FC #D5C3FD #EAE1FE

Accessibility & contrast

On white

2.76
#AB87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#AB87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87FC
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87FC#FFFFFF#000000##000000
##AB87FC1.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#679AF9
Tritanopia (blue-blind)
#999DB6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab87fc;
/* rgb */ color: rgb(171, 135, 252);
/* oklch */ color: oklch(70.7% 0.168 296.0);
Tailwind
colors: {
  custom: {
    50: '#c7aafe',
    500: '#ab87fc',
    950: '#000000',
  },
}
SCSS
$custom: #ab87fc;
$custom-light: #c7aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87fc",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 258.462,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.70671,
    "c": 0.1681,
    "h": 296
  },
  "luminance": 0.33014
}

Semantic roles & 50–950 ramp

primary
#AB87FC
secondary
#ECF6D5
accent
#E6009F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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