#AC87F3#AC87F3

#AC87F3 is a light, vivid violet. Relative luminance 0.326; OKLCH L 70.3% C 0.157 H 298.1°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#AC87F3
RGBrgb(172, 135, 243)
HSLhsl(261, 82%, 74%)
HSVhsv(261, 44%, 95%)
CMYKcmyk(29.2%, 44.4%, 0%, 4.7%)
CIE-LABlab(63.81, 36.38, -49.30)
CIE-LCHlch(63.81, 61.26, 306.42°)
OKLaboklab(70.27% 0.0737 -0.1383)
OKLCHoklch(70.27% 0.157 298.1)
XYZxyz(41.8510, 32.5693, 88.8582)
Luminance0.3257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F3 #CEF387
analogous
#8798F3 #AC87F3 #E287F3
triadic
#AC87F3 #F3AC87 #87F3AC
tetradic
#AC87F3 #F38798 #CEF387 #87F3E2
square
#AC87F3 #F38798 #CEF387 #87F3E2
split-complementary
#AC87F3 #F3E287 #98F387
monochromatic
#5F18E8 #864FED #AC87F3 #D2BFF9 #ECE3FC

Accessibility & contrast

On white

2.79
#AC87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#AC87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F3#FFFFFF#000000##000000
##AC87F31.002.797.517.51
#FFFFFF2.791.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#669BF7
Deuteranopia (green-blind)
#6E9AF0
Tritanopia (blue-blind)
#9D9BB1
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ac87f3;
/* rgb */ color: rgb(172, 135, 243);
/* oklch */ color: oklch(70.3% 0.157 298.1);
Tailwind
colors: {
  custom: {
    50: '#c7aaf7',
    500: '#ac87f3',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f3;
$custom-light: #c7aaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f3",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 260.556,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.70274,
    "c": 0.15671,
    "h": 298.1
  },
  "luminance": 0.3257
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AC87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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