#AC87F8#AC87F8

#AC87F8 is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.5% C 0.163 H 297.1°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#AC87F8
RGBrgb(172, 135, 248)
HSLhsl(260, 89%, 75%)
HSVhsv(260, 46%, 97%)
CMYKcmyk(30.6%, 45.6%, 0%, 2.7%)
CIE-LABlab(64.06, 37.61, -51.65)
CIE-LCHlch(64.06, 63.89, 306.06°)
OKLaboklab(70.54% 0.0744 -0.1451)
OKLCHoklch(70.54% 0.163 297.1)
XYZxyz(42.6164, 32.8754, 92.8891)
Luminance0.3288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F8 #D3F887
analogous
#879BF8 #AC87F8 #E487F8
triadic
#AC87F8 #F8AC87 #87F8AC
tetradic
#AC87F8 #F8879B #D3F887 #87F8E4
square
#AC87F8 #F8879B #D3F887 #87F8E4
split-complementary
#AC87F8 #F8E487 #9BF887
monochromatic
#5C13F1 #844DF5 #AC87F8 #D4C1FB #EBE2FD

Accessibility & contrast

On white

2.77
#AC87F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#AC87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F8#FFFFFF#000000##000000
##AC87F81.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#639CFC
Deuteranopia (green-blind)
#6B9AF5
Tritanopia (blue-blind)
#9C9CB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ac87f8;
/* rgb */ color: rgb(172, 135, 248);
/* oklch */ color: oklch(70.5% 0.163 297.1);
Tailwind
colors: {
  custom: {
    50: '#c7aafb',
    500: '#ac87f8',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f8;
$custom-light: #c7aafb;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f8",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 259.646,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.70542,
    "c": 0.1631,
    "h": 297.1
  },
  "luminance": 0.32876
}

Semantic roles & 50–950 ramp

primary
#AC87F8
secondary
#EBF5D6
accent
#E6009A
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AC87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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