#AB87CA#AB87CA

#AB87CA is a light, moderate violet. Relative luminance 0.302; OKLCH L 68.2% C 0.104 H 308.4°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#AB87CA
RGBrgb(171, 135, 202)
HSLhsl(272, 39%, 66%)
HSVhsv(272, 33%, 79%)
CMYKcmyk(15.3%, 33.2%, 0%, 20.8%)
CIE-LABlab(61.87, 26.51, -29.53)
CIE-LCHlch(61.87, 39.68, 311.92°)
OKLaboklab(68.18% 0.0645 -0.0813)
OKLCHoklch(68.18% 0.104 308.4)
XYZxyz(36.1173, 30.2505, 59.8019)
Luminance0.3025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87CA #A6CA87
analogous
#8987CA #AB87CA #CA87C7
triadic
#AB87CA #CAAB87 #87CAAB
tetradic
#AB87CA #CA8987 #A6CA87 #87C7CA
square
#AB87CA #CA8987 #A6CA87 #87C7CA
split-complementary
#AB87CA #C7CA87 #87CA89
monochromatic
#6E4295 #8D5DB7 #AB87CA #C9B1DD #E6DCEF

Accessibility & contrast

On white

2.98
#AB87CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.05
#AB87CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87CA
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87CA#FFFFFF#000000##000000
##AB87CA1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A94CD
Deuteranopia (green-blind)
#8296C8
Tritanopia (blue-blind)
#A7909F
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #ab87ca;
/* rgb */ color: rgb(171, 135, 202);
/* oklch */ color: oklch(68.2% 0.104 308.4);
Tailwind
colors: {
  custom: {
    50: '#c5aada',
    500: '#ab87ca',
    950: '#000000',
  },
}
SCSS
$custom: #ab87ca;
$custom-light: #c5aada;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87ca",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 272.239,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.68177,
    "c": 0.10373,
    "h": 308.4
  },
  "luminance": 0.3025
}

Semantic roles & 50–950 ramp

primary
#AB87CA
secondary
#D6E1CB
accent
#B2346E
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#131015
muted
#827F83

Preview Lab

Preview with #AB87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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