#AB87FE#AB87FE

#AB87FE is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.8% C 0.171 H 295.7°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#AB87FE
RGBrgb(171, 135, 254)
HSLhsl(258, 98%, 76%)
HSVhsv(258, 47%, 100%)
CMYKcmyk(32.7%, 46.9%, 0%, 0.4%)
CIE-LABlab(64.27, 38.84, -54.60)
CIE-LCHlch(64.27, 67.01, 305.43°)
OKLaboklab(70.78% 0.0739 -0.1538)
OKLCHoklch(70.78% 0.171 295.7)
XYZxyz(43.3435, 33.1410, 97.8600)
Luminance0.3314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87FE #DAFE87
analogous
#879FFE #AB87FE #E687FE
triadic
#AB87FE #FEAB87 #87FEAB
tetradic
#AB87FE #FE879F #DAFE87 #87FEE6
square
#AB87FE #FE879F #DAFE87 #87FEE6
split-complementary
#AB87FE #FEE687 #9FFE87
monochromatic
#560EFD #814AFD #AB87FE #D5C4FF #EAE1FF

Accessibility & contrast

On white

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

On black

7.63
#AB87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87FE
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87FE#FFFFFF#000000##000000
##AB87FE1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9DFF
Deuteranopia (green-blind)
#669AFB
Tritanopia (blue-blind)
#989EB6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab87fe;
/* rgb */ color: rgb(171, 135, 254);
/* oklch */ color: oklch(70.8% 0.171 295.7);
Tailwind
colors: {
  custom: {
    50: '#c7aaff',
    500: '#ab87fe',
    950: '#000000',
  },
}
SCSS
$custom: #ab87fe;
$custom-light: #c7aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87fe",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 258.151,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70782,
    "c": 0.17065,
    "h": 295.7
  },
  "luminance": 0.33142
}

Semantic roles & 50–950 ramp

primary
#AB87FE
secondary
#ECF7D4
accent
#E600A0
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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