#AB87CD#AB87CD

#AB87CD is a light, moderate violet. Relative luminance 0.304; OKLCH L 68.3% C 0.108 H 307.3°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#AB87CD
RGBrgb(171, 135, 205)
HSLhsl(271, 41%, 67%)
HSVhsv(271, 34%, 80%)
CMYKcmyk(16.6%, 34.1%, 0%, 19.6%)
CIE-LABlab(61.99, 27.18, -31.02)
CIE-LCHlch(61.99, 41.24, 311.22°)
OKLaboklab(68.31% 0.0652 -0.0855)
OKLCHoklch(68.31% 0.108 307.3)
XYZxyz(36.4759, 30.3939, 61.6908)
Luminance0.3039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87CD #A9CD87
analogous
#8887CD #AB87CD #CD87CC
triadic
#AB87CD #CDAB87 #87CDAB
tetradic
#AB87CD #CD8887 #A9CD87 #87CCCD
square
#AB87CD #CD8887 #A9CD87 #87CCCD
split-complementary
#AB87CD #CCCD87 #87CD88
monochromatic
#6E409A #8D5CBB #AB87CD #C9B2DF #E7DDF1

Accessibility & contrast

On white

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

On black

7.08
#AB87CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87CD
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87CD#FFFFFF#000000##000000
##AB87CD1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7994D0
Deuteranopia (green-blind)
#8196CB
Tritanopia (blue-blind)
#A691A1
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ab87cd;
/* rgb */ color: rgb(171, 135, 205);
/* oklch */ color: oklch(68.3% 0.108 307.3);
Tailwind
colors: {
  custom: {
    50: '#c5aadc',
    500: '#ab87cd',
    950: '#000000',
  },
}
SCSS
$custom: #ab87cd;
$custom-light: #c5aadc;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87cd",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 270.857,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68311,
    "c": 0.10755,
    "h": 307.3
  },
  "luminance": 0.30394
}

Semantic roles & 50–950 ramp

primary
#AB87CD
secondary
#D8E3CD
accent
#B43171
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#131015
muted
#827F83

Preview Lab

Preview with #AB87CD

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

Preview Lab → · Contrast checker → · Palette generator →

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