#AC87F6#AC87F6

#AC87F6 is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.4% C 0.161 H 297.5°. Best body text is #000000 at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#AC87F6
RGBrgb(172, 135, 246)
HSLhsl(260, 86%, 75%)
HSVhsv(260, 45%, 96%)
CMYKcmyk(30.1%, 45.1%, 0%, 3.5%)
CIE-LABlab(63.96, 37.11, -50.71)
CIE-LCHlch(63.96, 62.84, 306.20°)
OKLaboklab(70.43% 0.0741 -0.1424)
OKLCHoklch(70.43% 0.161 297.5)
XYZxyz(42.3078, 32.7520, 91.2637)
Luminance0.3275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F6 #D1F687
analogous
#879AF6 #AC87F6 #E487F6
triadic
#AC87F6 #F6AC87 #87F6AC
tetradic
#AC87F6 #F6879A #D1F687 #87F6E4
square
#AC87F6 #F6879A #D1F687 #87F6E4
split-complementary
#AC87F6 #F6E487 #9AF687
monochromatic
#5D15ED #854EF2 #AC87F6 #D3C0FA #EBE3FD

Accessibility & contrast

On white

2.78
#AC87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.55
#AC87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F6
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F6#FFFFFF#000000##000000
##AC87F61.002.787.557.55
#FFFFFF2.781.0021.0021.00
#0000007.5521.001.001.00
##0000007.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#659BFA
Deuteranopia (green-blind)
#6C9AF3
Tritanopia (blue-blind)
#9C9BB3
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ac87f6;
/* rgb */ color: rgb(172, 135, 246);
/* oklch */ color: oklch(70.4% 0.161 297.5);
Tailwind
colors: {
  custom: {
    50: '#c7aaf9',
    500: '#ac87f6',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f6;
$custom-light: #c7aaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f6",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 260,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.70434,
    "c": 0.16055,
    "h": 297.5
  },
  "luminance": 0.32752
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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