#AB86FC#AB86FC

#AB86FC is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.5% C 0.170 H 296.2°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AB86FC
RGBrgb(171, 134, 252)
HSLhsl(259, 95%, 76%)
HSVhsv(259, 47%, 99%)
CMYKcmyk(32.1%, 46.8%, 0%, 1.2%)
CIE-LABlab(63.95, 38.90, -54.03)
CIE-LCHlch(63.95, 66.58, 305.75°)
OKLaboklab(70.5% 0.075 -0.1521)
OKLCHoklch(70.5% 0.17 296.2)
XYZxyz(42.8860, 32.7358, 96.1358)
Luminance0.3274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB86FC #D7FC86
analogous
#869CFC #AB86FC #E686FC
triadic
#AB86FC #FCAB86 #86FCAB
tetradic
#AB86FC #FC869C #D7FC86 #86FCE6
square
#AB86FC #FC869C #D7FC86 #86FCE6
split-complementary
#AB86FC #FCE686 #9CFC86
monochromatic
#580FF9 #824AFB #AB86FC #D4C2FD #EAE1FE

Accessibility & contrast

On white

2.78
#AB86FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#AB86FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB86FC
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB86FC#FFFFFF#000000##000000
##AB86FC1.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9CFF
Deuteranopia (green-blind)
#6699F9
Tritanopia (blue-blind)
#999CB5
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ab86fc;
/* rgb */ color: rgb(171, 134, 252);
/* oklch */ color: oklch(70.5% 0.170 296.2);
Tailwind
colors: {
  custom: {
    50: '#c7aafe',
    500: '#ab86fc',
    950: '#000000',
  },
}
SCSS
$custom: #ab86fc;
$custom-light: #c7aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ab86fc",
  "rgb": {
    "r": 171,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 258.814,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.70502,
    "c": 0.1696,
    "h": 296.2
  },
  "luminance": 0.32736
}

Semantic roles & 50–950 ramp

primary
#AB86FC
secondary
#ECF6D5
accent
#E6009E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AB86FC

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

Preview Lab → · Contrast checker → · Palette generator →

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