#AC87F9#AC87F9

#AC87F9 is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.6% C 0.164 H 297.0°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#AC87F9
RGBrgb(172, 135, 249)
HSLhsl(259, 90%, 75%)
HSVhsv(259, 46%, 98%)
CMYKcmyk(30.9%, 45.8%, 0%, 2.4%)
CIE-LABlab(64.11, 37.85, -52.12)
CIE-LCHlch(64.11, 64.42, 305.99°)
OKLaboklab(70.6% 0.0745 -0.1465)
OKLCHoklch(70.6% 0.164 297)
XYZxyz(42.7719, 32.9376, 93.7083)
Luminance0.3294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC87F9 #D4F987
analogous
#879BF9 #AC87F9 #E587F9
triadic
#AC87F9 #F9AC87 #87F9AC
tetradic
#AC87F9 #F9879B #D4F987 #87F9E5
square
#AC87F9 #F9879B #D4F987 #87F9E5
split-complementary
#AC87F9 #F9E587 #9BF987
monochromatic
#5B12F3 #844DF6 #AC87F9 #D4C1FC #EBE2FE

Accessibility & contrast

On white

2.77
#AC87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#AC87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AC87F9
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC87F9#FFFFFF#000000##000000
##AC87F91.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#639CFD
Deuteranopia (green-blind)
#6A9AF6
Tritanopia (blue-blind)
#9B9CB4
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ac87f9;
/* rgb */ color: rgb(172, 135, 249);
/* oklch */ color: oklch(70.6% 0.164 297.0);
Tailwind
colors: {
  custom: {
    50: '#c7aafc',
    500: '#ac87f9',
    950: '#000000',
  },
}
SCSS
$custom: #ac87f9;
$custom-light: #c7aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#ac87f9",
  "rgb": {
    "r": 172,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 259.474,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.70597,
    "c": 0.16438,
    "h": 297
  },
  "luminance": 0.32938
}

Semantic roles & 50–950 ramp

primary
#AC87F9
secondary
#EBF6D5
accent
#E6009B
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#131017
muted
#827F85

Preview Lab

Preview with #AC87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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