#AB87F9#AB87F9

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

Color values

HEX#AB87F9
RGBrgb(171, 135, 249)
HSLhsl(259, 90%, 75%)
HSVhsv(259, 46%, 98%)
CMYKcmyk(31.3%, 45.8%, 0%, 2.4%)
CIE-LABlab(64.02, 37.59, -52.27)
CIE-LCHlch(64.02, 64.39, 305.72°)
OKLaboklab(70.51% 0.0733 -0.147)
OKLCHoklch(70.51% 0.164 296.5)
XYZxyz(42.5532, 32.8249, 93.6981)
Luminance0.3282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F9 #D5F987
analogous
#879CF9 #AB87F9 #E487F9
triadic
#AB87F9 #F9AB87 #87F9AB
tetradic
#AB87F9 #F9879C #D5F987 #87F9E4
square
#AB87F9 #F9879C #D5F987 #87F9E4
split-complementary
#AB87F9 #F9E487 #9CF987
monochromatic
#5912F3 #824DF6 #AB87F9 #D4C1FC #EBE2FE

Accessibility & contrast

On white

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

On black

7.57
#AB87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F9
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F9#FFFFFF#000000##000000
##AB87F91.002.787.577.57
#FFFFFF2.781.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#629CFD
Deuteranopia (green-blind)
#699AF6
Tritanopia (blue-blind)
#9A9CB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab87f9;
/* rgb */ color: rgb(171, 135, 249);
/* oklch */ color: oklch(70.5% 0.164 296.5);
Tailwind
colors: {
  custom: {
    50: '#c7aafc',
    500: '#ab87f9',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f9;
$custom-light: #c7aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f9",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 258.947,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.70506,
    "c": 0.16426,
    "h": 296.5
  },
  "luminance": 0.32825
}

Semantic roles & 50–950 ramp

primary
#AB87F9
secondary
#EBF6D5
accent
#E6009D
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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