#AB87F8#AB87F8

#AB87F8 is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.5% C 0.163 H 296.7°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AB87F8
RGBrgb(171, 135, 248)
HSLhsl(259, 89%, 75%)
HSVhsv(259, 46%, 97%)
CMYKcmyk(31%, 45.6%, 0%, 2.7%)
CIE-LABlab(63.97, 37.35, -51.80)
CIE-LCHlch(63.97, 63.86, 305.79°)
OKLaboklab(70.45% 0.0732 -0.1456)
OKLCHoklch(70.45% 0.163 296.7)
XYZxyz(42.3977, 32.7626, 92.8788)
Luminance0.3276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F8 #D4F887
analogous
#879CF8 #AB87F8 #E387F8
triadic
#AB87F8 #F8AB87 #87F8AB
tetradic
#AB87F8 #F8879C #D4F887 #87F8E3
square
#AB87F8 #F8879C #D4F887 #87F8E3
split-complementary
#AB87F8 #F8E387 #9CF887
monochromatic
#5A13F1 #834DF5 #AB87F8 #D3C1FB #EBE2FD

Accessibility & contrast

On white

2.78
#AB87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#AB87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F8
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F8#FFFFFF#000000##000000
##AB87F81.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#639CFC
Deuteranopia (green-blind)
#6A9AF5
Tritanopia (blue-blind)
#9A9CB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab87f8;
/* rgb */ color: rgb(171, 135, 248);
/* oklch */ color: oklch(70.5% 0.163 296.7);
Tailwind
colors: {
  custom: {
    50: '#c7aafb',
    500: '#ab87f8',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f8;
$custom-light: #c7aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f8",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 259.115,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70452,
    "c": 0.16297,
    "h": 296.7
  },
  "luminance": 0.32763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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