#AC87F2#AC87F2

#AC87F2 is a light, vivid violet. Relative luminance 0.325; OKLCH L 70.2% C 0.155 H 298.3°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#AC87F2
RGBrgb(172, 135, 242)
HSLhsl(261, 80%, 74%)
HSVhsv(261, 44%, 95%)
CMYKcmyk(28.9%, 44.2%, 0%, 5.1%)
CIE-LABlab(63.76, 36.13, -48.82)
CIE-LCHlch(63.76, 60.74, 306.50°)
OKLaboklab(70.22% 0.0736 -0.1369)
OKLCHoklch(70.22% 0.155 298.3)
XYZxyz(41.7004, 32.5090, 88.0651)
Luminance0.3251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F2 #CDF287
analogous
#8798F2 #AC87F2 #E287F2
triadic
#AC87F2 #F2AC87 #87F2AC
tetradic
#AC87F2 #F28798 #CDF287 #87F2E2
square
#AC87F2 #F28798 #CDF287 #87F2E2
split-complementary
#AC87F2 #F2E287 #98F287
monochromatic
#6019E6 #8650EC #AC87F2 #D2BEF8 #ECE3FC

Accessibility & contrast

On white

2.80
#AC87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#AC87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F2
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F2#FFFFFF#000000##000000
##AC87F21.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#679BF6
Deuteranopia (green-blind)
#6F99EF
Tritanopia (blue-blind)
#9E9AB1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ac87f2;
/* rgb */ color: rgb(172, 135, 242);
/* oklch */ color: oklch(70.2% 0.155 298.3);
Tailwind
colors: {
  custom: {
    50: '#c7aaf7',
    500: '#ac87f2',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f2;
$custom-light: #c7aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f2",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 260.748,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.70221,
    "c": 0.15542,
    "h": 298.3
  },
  "luminance": 0.32509
}

Semantic roles & 50–950 ramp

primary
#AC87F2
secondary
#EAF4D7
accent
#DD0993
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AC87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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