#AC87DC#AC87DC

#AC87DC is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.1% C 0.127 H 303.3°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#AC87DC
RGBrgb(172, 135, 220)
HSLhsl(266, 55%, 70%)
HSVhsv(266, 39%, 86%)
CMYKcmyk(21.8%, 38.6%, 0%, 13.7%)
CIE-LABlab(62.73, 30.89, -38.25)
CIE-LCHlch(62.73, 49.17, 308.92°)
OKLaboklab(69.11% 0.0698 -0.1063)
OKLCHoklch(69.11% 0.127 303.3)
XYZxyz(38.5928, 31.2660, 71.6980)
Luminance0.3127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87DC #B7DC87
analogous
#878CDC #AC87DC #D787DC
triadic
#AC87DC #DCAC87 #87DCAC
tetradic
#AC87DC #DC878C #B7DC87 #87DCD7
square
#AC87DC #DC878C #B7DC87 #87DCD7
split-complementary
#AC87DC #DCD787 #8CDC87
monochromatic
#6C35B4 #8B58CE #AC87DC #CDB6EA #EEE6F8

Accessibility & contrast

On white

2.90
#AC87DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#AC87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87DC
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87DC#FFFFFF#000000##000000
##AC87DC1.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7397DF
Deuteranopia (green-blind)
#7B98DA
Tritanopia (blue-blind)
#A495A7
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #ac87dc;
/* rgb */ color: rgb(172, 135, 220);
/* oklch */ color: oklch(69.1% 0.127 303.3);
Tailwind
colors: {
  custom: {
    50: '#c6aae7',
    500: '#ac87dc',
    950: '#000000',
  },
}
SCSS
$custom: #ac87dc;
$custom-light: #c6aae7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87dc",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 266.118,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.69106,
    "c": 0.12712,
    "h": 303.3
  },
  "luminance": 0.31266
}

Semantic roles & 50–950 ramp

primary
#AC87DC
secondary
#E1ECD3
accent
#C2237D
background
#FCFAFE
surface
#F8F4FC
border
#D1CED5
text
#131016
muted
#827F84

Preview Lab

Preview with #AC87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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