#AC87FE#AC87FE

#AC87FE is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.9% C 0.171 H 296.1°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#AC87FE
RGBrgb(172, 135, 254)
HSLhsl(259, 98%, 76%)
HSVhsv(259, 47%, 100%)
CMYKcmyk(32.3%, 46.9%, 0%, 0.4%)
CIE-LABlab(64.37, 39.10, -54.45)
CIE-LCHlch(64.37, 67.04, 305.68°)
OKLaboklab(70.87% 0.0751 -0.1533)
OKLCHoklch(70.87% 0.171 296.1)
XYZxyz(43.5622, 33.2537, 97.8702)
Luminance0.3325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87FE #D9FE87
analogous
#879EFE #AC87FE #E787FE
triadic
#AC87FE #FEAC87 #87FEAC
tetradic
#AC87FE #FE879E #D9FE87 #87FEE7
square
#AC87FE #FE879E #D9FE87 #87FEE7
split-complementary
#AC87FE #FEE787 #9EFE87
monochromatic
#580EFD #824AFD #AC87FE #D6C4FF #EAE1FF

Accessibility & contrast

On white

2.74
#AC87FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#AC87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87FE
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87FE#FFFFFF#000000##000000
##AC87FE1.002.747.657.65
#FFFFFF2.741.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9DFF
Deuteranopia (green-blind)
#669BFB
Tritanopia (blue-blind)
#9A9DB7
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ac87fe;
/* rgb */ color: rgb(172, 135, 254);
/* oklch */ color: oklch(70.9% 0.171 296.1);
Tailwind
colors: {
  custom: {
    50: '#c8aaff',
    500: '#ac87fe',
    950: '#000000',
  },
}
SCSS
$custom: #ac87fe;
$custom-light: #c8aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87fe",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 258.655,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.70871,
    "c": 0.17075,
    "h": 296.1
  },
  "luminance": 0.33254
}

Semantic roles & 50–950 ramp

primary
#AC87FE
secondary
#ECF7D4
accent
#E6009E
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AC87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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