#AB87CB#AB87CB

#AB87CB is a light, moderate violet. Relative luminance 0.303; OKLCH L 68.2% C 0.105 H 308.0°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#AB87CB
RGBrgb(171, 135, 203)
HSLhsl(272, 40%, 66%)
HSVhsv(272, 33%, 80%)
CMYKcmyk(15.8%, 33.5%, 0%, 20.4%)
CIE-LABlab(61.91, 26.73, -30.03)
CIE-LCHlch(61.91, 40.20, 311.68°)
OKLaboklab(68.22% 0.0647 -0.0827)
OKLCHoklch(68.22% 0.105 308)
XYZxyz(36.2360, 30.2980, 60.4275)
Luminance0.3030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87CB #A7CB87
analogous
#8987CB #AB87CB #CB87C9
triadic
#AB87CB #CBAB87 #87CBAB
tetradic
#AB87CB #CB8987 #A7CB87 #87C9CB
square
#AB87CB #CB8987 #A7CB87 #87C9CB
split-complementary
#AB87CB #C9CB87 #87CB89
monochromatic
#6E4196 #8D5CB8 #AB87CB #C9B2DE #E7DCF0

Accessibility & contrast

On white

2.97
#AB87CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#AB87CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87CB
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87CB#FFFFFF#000000##000000
##AB87CB1.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A94CE
Deuteranopia (green-blind)
#8296C9
Tritanopia (blue-blind)
#A791A0
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab87cb;
/* rgb */ color: rgb(171, 135, 203);
/* oklch */ color: oklch(68.2% 0.105 308.0);
Tailwind
colors: {
  custom: {
    50: '#c5aadb',
    500: '#ab87cb',
    950: '#000000',
  },
}
SCSS
$custom: #ab87cb;
$custom-light: #c5aadb;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87cb",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 271.765,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.68222,
    "c": 0.10501,
    "h": 308
  },
  "luminance": 0.30298
}

Semantic roles & 50–950 ramp

primary
#AB87CB
secondary
#D6E2CC
accent
#B3336F
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AB87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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