#AC87FC#AC87FC

#AC87FC is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.8% C 0.168 H 296.4°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#AC87FC
RGBrgb(172, 135, 252)
HSLhsl(259, 95%, 76%)
HSVhsv(259, 46%, 99%)
CMYKcmyk(31.7%, 46.4%, 0%, 1.2%)
CIE-LABlab(64.26, 38.60, -53.52)
CIE-LCHlch(64.26, 65.99, 305.80°)
OKLaboklab(70.76% 0.0749 -0.1506)
OKLCHoklch(70.76% 0.168 296.4)
XYZxyz(43.2436, 33.1263, 96.1923)
Luminance0.3313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87FC #D7FC87
analogous
#879CFC #AC87FC #E687FC
triadic
#AC87FC #FCAC87 #87FCAC
tetradic
#AC87FC #FC879C #D7FC87 #87FCE6
square
#AC87FC #FC879C #D7FC87 #87FCE6
split-complementary
#AC87FC #FCE687 #9CFC87
monochromatic
#5910F9 #834BFB #AC87FC #D5C3FD #EAE1FE

Accessibility & contrast

On white

2.75
#AC87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#AC87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87FC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87FC#FFFFFF#000000##000000
##AC87FC1.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFF
Deuteranopia (green-blind)
#689AF9
Tritanopia (blue-blind)
#9A9DB6
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ac87fc;
/* rgb */ color: rgb(172, 135, 252);
/* oklch */ color: oklch(70.8% 0.168 296.4);
Tailwind
colors: {
  custom: {
    50: '#c8aafe',
    500: '#ac87fc',
    950: '#000000',
  },
}
SCSS
$custom: #ac87fc;
$custom-light: #c8aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87fc",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 258.974,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.70761,
    "c": 0.1682,
    "h": 296.4
  },
  "luminance": 0.33127
}

Semantic roles & 50–950 ramp

primary
#AC87FC
secondary
#ECF6D5
accent
#E6009D
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131018
muted
#827F86

Preview Lab

Preview with #AC87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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