#AB87FD#AB87FD

#AB87FD is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.7% C 0.169 H 295.8°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#AB87FD
RGBrgb(171, 135, 253)
HSLhsl(258, 97%, 76%)
HSVhsv(258, 47%, 99%)
CMYKcmyk(32.4%, 46.6%, 0%, 0.8%)
CIE-LABlab(64.22, 38.59, -54.14)
CIE-LCHlch(64.22, 66.49, 305.48°)
OKLaboklab(70.73% 0.0738 -0.1524)
OKLCHoklch(70.73% 0.169 295.8)
XYZxyz(43.1838, 33.0771, 97.0188)
Luminance0.3308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87FD #D9FD87
analogous
#879EFD #AB87FD #E687FD
triadic
#AB87FD #FDAB87 #87FDAB
tetradic
#AB87FD #FD879E #D9FD87 #87FDE6
square
#AB87FD #FD879E #D9FD87 #87FDE6
split-complementary
#AB87FD #FDE687 #9EFD87
monochromatic
#570FFB #814BFC #AB87FD #D5C3FE #EAE1FE

Accessibility & contrast

On white

2.76
#AB87FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.62
#AB87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87FD
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87FD#FFFFFF#000000##000000
##AB87FD1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#669AFA
Tritanopia (blue-blind)
#999DB6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ab87fd;
/* rgb */ color: rgb(171, 135, 253);
/* oklch */ color: oklch(70.7% 0.169 295.8);
Tailwind
colors: {
  custom: {
    50: '#c7aafe',
    500: '#ab87fd',
    950: '#000000',
  },
}
SCSS
$custom: #ab87fd;
$custom-light: #c7aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87fd",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 258.305,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.70726,
    "c": 0.16937,
    "h": 295.8
  },
  "luminance": 0.33078
}

Semantic roles & 50–950 ramp

primary
#AB87FD
secondary
#ECF7D4
accent
#E6009F
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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