#AB87F0#AB87F0

#AB87F0 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.0% C 0.153 H 298.2°. Best body text is #000000 at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#AB87F0
RGBrgb(171, 135, 240)
HSLhsl(261, 78%, 74%)
HSVhsv(261, 44%, 94%)
CMYKcmyk(28.8%, 43.8%, 0%, 5.9%)
CIE-LABlab(63.57, 35.37, -48.03)
CIE-LCHlch(63.57, 59.65, 306.37°)
OKLaboklab(70.02% 0.0721 -0.1346)
OKLCHoklch(70.02% 0.153 298.2)
XYZxyz(41.1830, 32.2768, 86.4815)
Luminance0.3228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F0 #CCF087
analogous
#8797F0 #AB87F0 #DF87F0
triadic
#AB87F0 #F0AB87 #87F0AB
tetradic
#AB87F0 #F08797 #CCF087 #87F0DF
square
#AB87F0 #F08797 #CCF087 #87F0DF
split-complementary
#AB87F0 #F0DF87 #97F087
monochromatic
#5F1CE1 #8551E9 #AB87F0 #D1BDF7 #ECE4FC

Accessibility & contrast

On white

2.82
#AB87F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.46
#AB87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F0
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F0#FFFFFF#000000##000000
##AB87F01.002.827.467.46
#FFFFFF2.821.0021.0021.00
#0000007.4621.001.001.00
##0000007.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#689AF4
Deuteranopia (green-blind)
#6F99ED
Tritanopia (blue-blind)
#9D9AB0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab87f0;
/* rgb */ color: rgb(171, 135, 240);
/* oklch */ color: oklch(70.0% 0.153 298.2);
Tailwind
colors: {
  custom: {
    50: '#c6aaf5',
    500: '#ab87f0',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f0;
$custom-light: #c6aaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f0",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 260.571,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.70024,
    "c": 0.15271,
    "h": 298.2
  },
  "luminance": 0.32277
}

Semantic roles & 50–950 ramp

primary
#AB87F0
secondary
#EAF3D8
accent
#DA0B93
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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