#AB87F1#AB87F1

#AB87F1 is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.1% C 0.154 H 298.0°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AB87F1
RGBrgb(171, 135, 241)
HSLhsl(260, 79%, 74%)
HSVhsv(260, 44%, 95%)
CMYKcmyk(29%, 44%, 0%, 5.5%)
CIE-LABlab(63.62, 35.62, -48.50)
CIE-LCHlch(63.62, 60.18, 306.29°)
OKLaboklab(70.08% 0.0722 -0.136)
OKLCHoklch(70.08% 0.154 298)
XYZxyz(41.3320, 32.3364, 87.2660)
Luminance0.3234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F1 #CDF187
analogous
#8798F1 #AB87F1 #E087F1
triadic
#AB87F1 #F1AB87 #87F1AB
tetradic
#AB87F1 #F18798 #CDF187 #87F1E0
square
#AB87F1 #F18798 #CDF187 #87F1E0
split-complementary
#AB87F1 #F1E087 #98F187
monochromatic
#5F1AE3 #8550EB #AB87F1 #D1BEF7 #ECE4FC

Accessibility & contrast

On white

2.81
#AB87F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AB87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F1
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F1#FFFFFF#000000##000000
##AB87F11.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF5
Deuteranopia (green-blind)
#6F99EE
Tritanopia (blue-blind)
#9D9AB0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab87f1;
/* rgb */ color: rgb(171, 135, 241);
/* oklch */ color: oklch(70.1% 0.154 298.0);
Tailwind
colors: {
  custom: {
    50: '#c6aaf6',
    500: '#ab87f1',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f1;
$custom-light: #c6aaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f1",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 260.377,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.70076,
    "c": 0.154,
    "h": 298
  },
  "luminance": 0.32337
}

Semantic roles & 50–950 ramp

primary
#AB87F1
secondary
#EAF4D7
accent
#DB0A94
background
#FCFAFF
surface
#F8F4FE
border
#D1CED6
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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