#AB87F5#AB87F5

#AB87F5 is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.3% C 0.159 H 297.2°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#AB87F5
RGBrgb(171, 135, 245)
HSLhsl(260, 85%, 75%)
HSVhsv(260, 45%, 96%)
CMYKcmyk(30.2%, 44.9%, 0%, 3.9%)
CIE-LABlab(63.82, 36.60, -50.39)
CIE-LCHlch(63.82, 62.28, 305.99°)
OKLaboklab(70.29% 0.0728 -0.1415)
OKLCHoklch(70.29% 0.159 297.2)
XYZxyz(41.9360, 32.5780, 90.4473)
Luminance0.3258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F5 #D1F587
analogous
#879AF5 #AB87F5 #E287F5
triadic
#AB87F5 #F5AB87 #87F5AB
tetradic
#AB87F5 #F5879A #D1F587 #87F5E2
square
#AB87F5 #F5879A #D1F587 #87F5E2
split-complementary
#AB87F5 #F5E287 #9AF587
monochromatic
#5C16EC #834FF0 #AB87F5 #D3BFFA #EBE3FD

Accessibility & contrast

On white

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

On black

7.52
#AB87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F5
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F5#FFFFFF#000000##000000
##AB87F51.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#659BF9
Deuteranopia (green-blind)
#6C99F2
Tritanopia (blue-blind)
#9B9BB2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab87f5;
/* rgb */ color: rgb(171, 135, 245);
/* oklch */ color: oklch(70.3% 0.159 297.2);
Tailwind
colors: {
  custom: {
    50: '#c7aaf9',
    500: '#ab87f5',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f5;
$custom-light: #c7aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f5",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 259.636,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.7029,
    "c": 0.15913,
    "h": 297.2
  },
  "luminance": 0.32578
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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