#AC87EF#AC87EF

#AC87EF is a light, vivid violet. Relative luminance 0.323; OKLCH L 70.1% C 0.152 H 298.8°. Best body text is #000000 at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#AC87EF
RGBrgb(172, 135, 239)
HSLhsl(261, 76%, 73%)
HSVhsv(261, 44%, 94%)
CMYKcmyk(28%, 43.5%, 0%, 6.3%)
CIE-LABlab(63.61, 35.40, -47.40)
CIE-LCHlch(63.61, 59.16, 306.75°)
OKLaboklab(70.06% 0.0731 -0.1328)
OKLCHoklch(70.06% 0.152 298.8)
XYZxyz(41.2536, 32.3303, 85.7116)
Luminance0.3233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87EF #CAEF87
analogous
#8796EF #AC87EF #E087EF
triadic
#AC87EF #EFAC87 #87EFAC
tetradic
#AC87EF #EF8796 #CAEF87 #87EFE0
square
#AC87EF #EF8796 #CAEF87 #87EFE0
split-complementary
#AC87EF #EFE087 #96EF87
monochromatic
#621EDE #8751E8 #AC87EF #D1BDF6 #ECE4FB

Accessibility & contrast

On white

2.81
#AC87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.47
#AC87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87EF
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87EF#FFFFFF#000000##000000
##AC87EF1.002.817.477.47
#FFFFFF2.811.0021.0021.00
#0000007.4721.001.001.00
##0000007.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#699AF3
Deuteranopia (green-blind)
#7099EC
Tritanopia (blue-blind)
#9F99B0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ac87ef;
/* rgb */ color: rgb(172, 135, 239);
/* oklch */ color: oklch(70.1% 0.152 298.8);
Tailwind
colors: {
  custom: {
    50: '#c7aaf4',
    500: '#ac87ef',
    950: '#000000',
  },
}
SCSS
$custom: #ac87ef;
$custom-light: #c7aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87ef",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 261.346,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.70063,
    "c": 0.15157,
    "h": 298.8
  },
  "luminance": 0.32331
}

Semantic roles & 50–950 ramp

primary
#AC87EF
secondary
#E9F3D8
accent
#D90D90
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131017
muted
#827F85

Preview Lab

Preview with #AC87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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