#AC87F5#AC87F5

#AC87F5 is a light, vivid violet. Relative luminance 0.327; OKLCH L 70.4% C 0.159 H 297.7°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#AC87F5
RGBrgb(172, 135, 245)
HSLhsl(260, 85%, 75%)
HSVhsv(260, 45%, 96%)
CMYKcmyk(29.8%, 44.9%, 0%, 3.9%)
CIE-LABlab(63.91, 36.87, -50.24)
CIE-LCHlch(63.91, 62.31, 306.27°)
OKLaboklab(70.38% 0.074 -0.141)
OKLCHoklch(70.38% 0.159 297.7)
XYZxyz(42.1547, 32.6907, 90.4575)
Luminance0.3269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F5 #D0F587
analogous
#8799F5 #AC87F5 #E387F5
triadic
#AC87F5 #F5AC87 #87F5AC
tetradic
#AC87F5 #F58799 #D0F587 #87F5E3
square
#AC87F5 #F58799 #D0F587 #87F5E3
split-complementary
#AC87F5 #F5E387 #99F587
monochromatic
#5E16EC #854FF0 #AC87F5 #D3BFFA #EBE3FD

Accessibility & contrast

On white

2.79
#AC87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#AC87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F5
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F5#FFFFFF#000000##000000
##AC87F51.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#659BF9
Deuteranopia (green-blind)
#6D9AF2
Tritanopia (blue-blind)
#9D9BB2
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ac87f5;
/* rgb */ color: rgb(172, 135, 245);
/* oklch */ color: oklch(70.4% 0.159 297.7);
Tailwind
colors: {
  custom: {
    50: '#c7aaf9',
    500: '#ac87f5',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f5;
$custom-light: #c7aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f5",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 260.182,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.70381,
    "c": 0.15927,
    "h": 297.7
  },
  "luminance": 0.32691
}

Semantic roles & 50–950 ramp

primary
#AC87F5
secondary
#EAF5D6
accent
#E10497
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AC87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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