#AB87F3#AB87F3

#AB87F3 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.2% C 0.157 H 297.6°. Best body text is #000000 at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#AB87F3
RGBrgb(171, 135, 243)
HSLhsl(260, 82%, 74%)
HSVhsv(260, 44%, 95%)
CMYKcmyk(29.6%, 44.4%, 0%, 4.7%)
CIE-LABlab(63.72, 36.11, -49.45)
CIE-LCHlch(63.72, 61.23, 306.14°)
OKLaboklab(70.18% 0.0725 -0.1388)
OKLCHoklch(70.18% 0.157 297.6)
XYZxyz(41.6323, 32.4565, 88.8480)
Luminance0.3246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F3 #CFF387
analogous
#8799F3 #AB87F3 #E187F3
triadic
#AB87F3 #F3AB87 #87F3AB
tetradic
#AB87F3 #F38799 #CFF387 #87F3E1
square
#AB87F3 #F38799 #CFF387 #87F3E1
split-complementary
#AB87F3 #F3E187 #99F387
monochromatic
#5D18E8 #844FED #AB87F3 #D2BFF9 #ECE3FC

Accessibility & contrast

On white

2.80
#AB87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.49
#AB87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F3#FFFFFF#000000##000000
##AB87F31.002.807.497.49
#FFFFFF2.801.0021.0021.00
#0000007.4921.001.001.00
##0000007.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#669BF7
Deuteranopia (green-blind)
#6D99F0
Tritanopia (blue-blind)
#9C9BB1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab87f3;
/* rgb */ color: rgb(171, 135, 243);
/* oklch */ color: oklch(70.2% 0.157 297.6);
Tailwind
colors: {
  custom: {
    50: '#c6aaf7',
    500: '#ab87f3',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f3;
$custom-light: #c6aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f3",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 260,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70183,
    "c": 0.15656,
    "h": 297.6
  },
  "luminance": 0.32457
}

Semantic roles & 50–950 ramp

primary
#AB87F3
secondary
#EAF4D7
accent
#DE0797
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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