#AB87FA#AB87FA

#AB87FA is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.6% C 0.166 H 296.3°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#AB87FA
RGBrgb(171, 135, 250)
HSLhsl(259, 92%, 75%)
HSVhsv(259, 46%, 98%)
CMYKcmyk(31.6%, 46%, 0%, 2%)
CIE-LABlab(64.07, 37.84, -52.74)
CIE-LCHlch(64.07, 64.91, 305.66°)
OKLaboklab(70.56% 0.0735 -0.1483)
OKLCHoklch(70.56% 0.166 296.3)
XYZxyz(42.7096, 32.8874, 94.5217)
Luminance0.3289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87FA #D6FA87
analogous
#879CFA #AB87FA #E587FA
triadic
#AB87FA #FAAB87 #87FAAB
tetradic
#AB87FA #FA879C #D6FA87 #87FAE5
square
#AB87FA #FA879C #D6FA87 #87FAE5
split-complementary
#AB87FA #FAE587 #9CFA87
monochromatic
#5911F5 #824CF8 #AB87FA #D4C2FC #EAE2FE

Accessibility & contrast

On white

2.77
#AB87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#AB87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87FA
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87FA#FFFFFF#000000##000000
##AB87FA1.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#629CFE
Deuteranopia (green-blind)
#699AF7
Tritanopia (blue-blind)
#9A9CB5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab87fa;
/* rgb */ color: rgb(171, 135, 250);
/* oklch */ color: oklch(70.6% 0.166 296.3);
Tailwind
colors: {
  custom: {
    50: '#c7aafc',
    500: '#ab87fa',
    950: '#000000',
  },
}
SCSS
$custom: #ab87fa;
$custom-light: #c7aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87fa",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 258.783,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.70561,
    "c": 0.16554,
    "h": 296.3
  },
  "luminance": 0.32888
}

Semantic roles & 50–950 ramp

primary
#AB87FA
secondary
#ECF6D5
accent
#E6009E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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