#AB87DA#AB87DA

#AB87DA is a light, vivid violet. Relative luminance 0.310; OKLCH L 68.9% C 0.124 H 303.3°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#AB87DA
RGBrgb(171, 135, 218)
HSLhsl(266, 53%, 69%)
HSVhsv(266, 38%, 85%)
CMYKcmyk(21.6%, 38.1%, 0%, 14.5%)
CIE-LABlab(62.55, 30.13, -37.43)
CIE-LCHlch(62.55, 48.05, 308.83°)
OKLaboklab(68.92% 0.0682 -0.1039)
OKLCHoklch(68.92% 0.124 303.3)
XYZxyz(38.1108, 31.0479, 70.3012)
Luminance0.3105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87DA #B6DA87
analogous
#878DDA #AB87DA #D587DA
triadic
#AB87DA #DAAB87 #87DAAB
tetradic
#AB87DA #DA878D #B6DA87 #87DAD5
square
#AB87DA #DA878D #B6DA87 #87DAD5
split-complementary
#AB87DA #DAD587 #8DDA87
monochromatic
#6B36B0 #8A58CC #AB87DA #CCB6E8 #ECE5F7

Accessibility & contrast

On white

2.91
#AB87DA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#AB87DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87DA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87DA#FFFFFF#000000##000000
##AB87DA1.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7496DD
Deuteranopia (green-blind)
#7B97D8
Tritanopia (blue-blind)
#A394A6
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #ab87da;
/* rgb */ color: rgb(171, 135, 218);
/* oklch */ color: oklch(68.9% 0.124 303.3);
Tailwind
colors: {
  custom: {
    50: '#c5aae6',
    500: '#ab87da',
    950: '#000000',
  },
}
SCSS
$custom: #ab87da;
$custom-light: #c5aae6;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87da",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 218
  },
  "hsl": {
    "h": 266.024,
    "s": 52.866,
    "l": 69.216
  },
  "oklch": {
    "l": 0.68916,
    "c": 0.12429,
    "h": 303.3
  },
  "luminance": 0.31048
}

Semantic roles & 50–950 ramp

primary
#AB87DA
secondary
#E0EAD2
accent
#C0257D
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AB87DA

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

Preview Lab → · Contrast checker → · Palette generator →

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