#AB87F7#AB87F7

#AB87F7 is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.162 H 296.9°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AB87F7
RGBrgb(171, 135, 247)
HSLhsl(259, 88%, 75%)
HSVhsv(259, 45%, 97%)
CMYKcmyk(30.8%, 45.3%, 0%, 3.1%)
CIE-LABlab(63.92, 37.10, -51.33)
CIE-LCHlch(63.92, 63.33, 305.86°)
OKLaboklab(70.4% 0.0731 -0.1442)
OKLCHoklch(70.4% 0.162 296.9)
XYZxyz(42.2430, 32.7008, 92.0640)
Luminance0.3270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F7 #D3F787
analogous
#879BF7 #AB87F7 #E387F7
triadic
#AB87F7 #F7AB87 #87F7AB
tetradic
#AB87F7 #F7879B #D3F787 #87F7E3
square
#AB87F7 #F7879B #D3F787 #87F7E3
split-complementary
#AB87F7 #F7E387 #9BF787
monochromatic
#5B14EF #834EF3 #AB87F7 #D3C0FB #EBE2FD

Accessibility & contrast

On white

2.79
#AB87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#AB87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F7#FFFFFF#000000##000000
##AB87F71.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#649BFB
Deuteranopia (green-blind)
#6B9AF4
Tritanopia (blue-blind)
#9B9CB3
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab87f7;
/* rgb */ color: rgb(171, 135, 247);
/* oklch */ color: oklch(70.4% 0.162 296.9);
Tailwind
colors: {
  custom: {
    50: '#c7aafa',
    500: '#ab87f7',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f7;
$custom-light: #c7aafa;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f7",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 259.286,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70398,
    "c": 0.1617,
    "h": 296.9
  },
  "luminance": 0.32701
}

Semantic roles & 50–950 ramp

primary
#AB87F7
secondary
#EBF5D6
accent
#E4019B
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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