#AB87BB#AB87BB

#AB87BB is a light, moderate purple. Relative luminance 0.296; OKLCH L 67.5% C 0.085 H 315.3°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#AB87BB
RGBrgb(171, 135, 187)
HSLhsl(282, 28%, 63%)
HSVhsv(282, 28%, 73%)
CMYKcmyk(8.6%, 27.8%, 0%, 26.7%)
CIE-LABlab(61.29, 23.29, -21.97)
CIE-LCHlch(61.29, 32.02, 316.67°)
OKLaboklab(67.54% 0.0604 -0.0598)
OKLCHoklch(67.54% 0.085 315.3)
XYZxyz(34.4268, 29.5743, 50.8989)
Luminance0.2957 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87BB #97BB87
analogous
#9187BB #AB87BB #BB87B1
triadic
#AB87BB #BBAB87 #87BBAB
tetradic
#AB87BB #BB9187 #97BB87 #87B1BB
square
#AB87BB #BB9187 #97BB87 #87B1BB
split-complementary
#AB87BB #B1BB87 #87BB91
monochromatic
#6E487F #9060A5 #AB87BB #C6AED1 #E2D5E7

Accessibility & contrast

On white

3.04
#AB87BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#AB87BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB87BB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87BB#FFFFFF#000000##000000
##AB87BB1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8092BD
Deuteranopia (green-blind)
#8895B9
Tritanopia (blue-blind)
#AA8D99
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab87bb;
/* rgb */ color: rgb(171, 135, 187);
/* oklch */ color: oklch(67.5% 0.085 315.3);
Tailwind
colors: {
  custom: {
    50: '#c4aacf',
    500: '#ab87bb',
    950: '#000000',
  },
}
SCSS
$custom: #ab87bb;
$custom-light: #c4aacf;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87bb",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 187
  },
  "hsl": {
    "h": 281.538,
    "s": 27.66,
    "l": 63.137
  },
  "oklch": {
    "l": 0.67538,
    "c": 0.085,
    "h": 315.3
  },
  "luminance": 0.29574
}

Semantic roles & 50–950 ramp

primary
#AB87BB
secondary
#CBD8C6
accent
#A63F5F
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#131014
muted
#827F82

Preview Lab

Preview with #AB87BB

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

Preview Lab → · Contrast checker → · Palette generator →

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