#AB87F4#AB87F4

#AB87F4 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.2% C 0.158 H 297.4°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#AB87F4
RGBrgb(171, 135, 244)
HSLhsl(260, 83%, 74%)
HSVhsv(260, 45%, 96%)
CMYKcmyk(29.9%, 44.7%, 0%, 4.3%)
CIE-LABlab(63.77, 36.36, -49.92)
CIE-LCHlch(63.77, 61.76, 306.07°)
OKLaboklab(70.24% 0.0727 -0.1401)
OKLCHoklch(70.24% 0.158 297.4)
XYZxyz(41.7838, 32.5171, 89.6455)
Luminance0.3252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB87F4 #D0F487
analogous
#879AF4 #AB87F4 #E287F4
triadic
#AB87F4 #F4AB87 #87F4AB
tetradic
#AB87F4 #F4879A #D0F487 #87F4E2
square
#AB87F4 #F4879A #D0F487 #87F4E2
split-complementary
#AB87F4 #F4E287 #9AF487
monochromatic
#5D17EA #844FEF #AB87F4 #D2BFF9 #EBE3FC

Accessibility & contrast

On white

2.80
#AB87F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#AB87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AB87F4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB87F4#FFFFFF#000000##000000
##AB87F41.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#669BF8
Deuteranopia (green-blind)
#6D99F1
Tritanopia (blue-blind)
#9C9BB2
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ab87f4;
/* rgb */ color: rgb(171, 135, 244);
/* oklch */ color: oklch(70.2% 0.158 297.4);
Tailwind
colors: {
  custom: {
    50: '#c6aaf8',
    500: '#ab87f4',
    950: '#000000',
  },
}
SCSS
$custom: #ab87f4;
$custom-light: #c6aaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ab87f4",
  "rgb": {
    "r": 171,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 259.817,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.70236,
    "c": 0.15785,
    "h": 297.4
  },
  "luminance": 0.32518
}

Semantic roles & 50–950 ramp

primary
#AB87F4
secondary
#EBF4D7
accent
#E00698
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AB87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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