#AB87BC#AB87BC

#AB87BC is a light, moderate purple. Relative luminance 0.296; OKLCH L 67.6% C 0.086 H 314.7°. Best body text is #000000 at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#AB87BC
RGBrgb(171, 135, 188)
HSLhsl(281, 28%, 63%)
HSVhsv(281, 28%, 74%)
CMYKcmyk(9%, 28.2%, 0%, 26.3%)
CIE-LABlab(61.32, 23.50, -22.48)
CIE-LCHlch(61.32, 32.52, 316.27°)
OKLaboklab(67.58% 0.0607 -0.0613)
OKLCHoklch(67.58% 0.086 314.7)
XYZxyz(34.5342, 29.6173, 51.4647)
Luminance0.2962 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87BC #98BC87
analogous
#9087BC #AB87BC #BC87B2
triadic
#AB87BC #BCAB87 #87BCAB
tetradic
#AB87BC #BC9087 #98BC87 #87B2BC
square
#AB87BC #BC9087 #98BC87 #87B2BC
split-complementary
#AB87BC #B2BC87 #87BC90
monochromatic
#6E4881 #9060A6 #AB87BC #C6AED2 #E2D6E8

Accessibility & contrast

On white

3.03
#AB87BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.92
#AB87BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AB87BC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87BC#FFFFFF#000000##000000
##AB87BC1.003.036.926.92
#FFFFFF3.031.0021.0021.00
#0000006.9221.001.001.00
##0000006.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F92BE
Deuteranopia (green-blind)
#8795BA
Tritanopia (blue-blind)
#AA8D9A
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ab87bc;
/* rgb */ color: rgb(171, 135, 188);
/* oklch */ color: oklch(67.6% 0.086 314.7);
Tailwind
colors: {
  custom: {
    50: '#c4aad0',
    500: '#ab87bc',
    950: '#000000',
  },
}
SCSS
$custom: #ab87bc;
$custom-light: #c4aad0;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87bc",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 188
  },
  "hsl": {
    "h": 280.755,
    "s": 28.342,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67579,
    "c": 0.08622,
    "h": 314.7
  },
  "luminance": 0.29617
}

Semantic roles & 50–950 ramp

primary
#AB87BC
secondary
#CCD9C6
accent
#A73F60
background
#FCFAFC
surface
#F8F4F9
border
#D1CED2
text
#131014
muted
#827F82

Preview Lab

Preview with #AB87BC

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

Preview Lab → · Contrast checker → · Palette generator →

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