#AC87F7#AC87F7

#AC87F7 is a light, vivid violet. Relative luminance 0.328; OKLCH L 70.5% C 0.162 H 297.3°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AC87F7
RGBrgb(172, 135, 247)
HSLhsl(260, 88%, 75%)
HSVhsv(260, 45%, 97%)
CMYKcmyk(30.4%, 45.3%, 0%, 3.1%)
CIE-LABlab(64.01, 37.36, -51.18)
CIE-LCHlch(64.01, 63.37, 306.13°)
OKLaboklab(70.49% 0.0743 -0.1438)
OKLCHoklch(70.49% 0.162 297.3)
XYZxyz(42.4617, 32.8135, 92.0742)
Luminance0.3281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F7 #D2F787
analogous
#879AF7 #AC87F7 #E487F7
triadic
#AC87F7 #F7AC87 #87F7AC
tetradic
#AC87F7 #F7879A #D2F787 #87F7E4
square
#AC87F7 #F7879A #D2F787 #87F7E4
split-complementary
#AC87F7 #F7E487 #9AF787
monochromatic
#5D14EF #844EF3 #AC87F7 #D4C0FB #EBE2FD

Accessibility & contrast

On white

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

On black

7.56
#AC87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F7
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F7#FFFFFF#000000##000000
##AC87F71.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#649BFB
Deuteranopia (green-blind)
#6B9AF4
Tritanopia (blue-blind)
#9C9CB3
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ac87f7;
/* rgb */ color: rgb(172, 135, 247);
/* oklch */ color: oklch(70.5% 0.162 297.3);
Tailwind
colors: {
  custom: {
    50: '#c7aafa',
    500: '#ac87f7',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f7;
$custom-light: #c7aafa;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f7",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 259.821,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.70488,
    "c": 0.16182,
    "h": 297.3
  },
  "luminance": 0.32814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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