#AB87F2#AB87F2

#AB87F2 is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.1% C 0.155 H 297.8°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#AB87F2
RGBrgb(171, 135, 242)
HSLhsl(260, 80%, 74%)
HSVhsv(260, 44%, 95%)
CMYKcmyk(29.3%, 44.2%, 0%, 5.1%)
CIE-LABlab(63.67, 35.86, -48.97)
CIE-LCHlch(63.67, 60.70, 306.22°)
OKLaboklab(70.13% 0.0724 -0.1374)
OKLCHoklch(70.13% 0.155 297.8)
XYZxyz(41.4817, 32.3963, 88.0548)
Luminance0.3240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F2 #CEF287
analogous
#8799F2 #AB87F2 #E187F2
triadic
#AB87F2 #F2AB87 #87F2AB
tetradic
#AB87F2 #F28799 #CEF287 #87F2E1
square
#AB87F2 #F28799 #CEF287 #87F2E1
split-complementary
#AB87F2 #F2E187 #99F287
monochromatic
#5E19E6 #8450EC #AB87F2 #D2BEF8 #ECE3FC

Accessibility & contrast

On white

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

On black

7.48
#AB87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F2
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F2#FFFFFF#000000##000000
##AB87F21.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#679AF6
Deuteranopia (green-blind)
#6E99EF
Tritanopia (blue-blind)
#9C9AB1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab87f2;
/* rgb */ color: rgb(171, 135, 242);
/* oklch */ color: oklch(70.1% 0.155 297.8);
Tailwind
colors: {
  custom: {
    50: '#c6aaf7',
    500: '#ab87f2',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f2;
$custom-light: #c6aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f2",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 260.187,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70129,
    "c": 0.15528,
    "h": 297.8
  },
  "luminance": 0.32397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AB87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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