#AC87FB#AC87FB

#AC87FB is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.7% C 0.167 H 296.6°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#AC87FB
RGBrgb(172, 135, 251)
HSLhsl(259, 94%, 76%)
HSVhsv(259, 46%, 98%)
CMYKcmyk(31.5%, 46.2%, 0%, 1.6%)
CIE-LABlab(64.21, 38.35, -53.05)
CIE-LCHlch(64.21, 65.46, 305.86°)
OKLaboklab(70.71% 0.0748 -0.1492)
OKLCHoklch(70.71% 0.167 296.6)
XYZxyz(43.0855, 33.0631, 95.3599)
Luminance0.3306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87FB #D6FB87
analogous
#879CFB #AC87FB #E687FB
triadic
#AC87FB #FBAC87 #87FBAC
tetradic
#AC87FB #FB879C #D6FB87 #87FBE6
square
#AC87FB #FB879C #D6FB87 #87FBE6
split-complementary
#AC87FB #FBE687 #9CFB87
monochromatic
#5A11F7 #834CF9 #AC87FB #D5C2FD #EBE1FE

Accessibility & contrast

On white

2.76
#AC87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#AC87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87FB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87FB#FFFFFF#000000##000000
##AC87FB1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFF
Deuteranopia (green-blind)
#699AF8
Tritanopia (blue-blind)
#9B9DB5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ac87fb;
/* rgb */ color: rgb(172, 135, 251);
/* oklch */ color: oklch(70.7% 0.167 296.6);
Tailwind
colors: {
  custom: {
    50: '#c8aafd',
    500: '#ac87fb',
    950: '#000000',
  },
}
SCSS
$custom: #ac87fb;
$custom-light: #c8aafd;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87fb",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 259.138,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.70706,
    "c": 0.16693,
    "h": 296.6
  },
  "luminance": 0.33064
}

Semantic roles & 50–950 ramp

primary
#AC87FB
secondary
#ECF6D5
accent
#E6009C
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AC87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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