#A87EF6#A87EF6

#A87EF6 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.6% C 0.174 H 297.8°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#A87EF6
RGBrgb(168, 126, 246)
HSLhsl(261, 87%, 73%)
HSVhsv(261, 49%, 96%)
CMYKcmyk(31.7%, 48.8%, 0%, 3.5%)
CIE-LABlab(61.57, 41.10, -54.53)
CIE-LCHlch(61.57, 68.28, 307.00°)
OKLaboklab(68.55% 0.081 -0.1537)
OKLCHoklch(68.55% 0.174 297.8)
XYZxyz(40.2398, 29.8999, 90.8221)
Luminance0.2990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EF6 #CCF67E
analogous
#7E90F6 #A87EF6 #E47EF6
triadic
#A87EF6 #F6A87E #7EF6A8
tetradic
#A87EF6 #F67E90 #CCF67E #7EF6E4
square
#A87EF6 #F67E90 #CCF67E #7EF6E4
split-complementary
#A87EF6 #F6E47E #90F67E
monochromatic
#5C10E9 #8145F2 #A87EF6 #CFB7FA #ECE2FD

Accessibility & contrast

On white

3.01
#A87EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#A87EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87EF6
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EF6#FFFFFF#000000##000000
##A87EF61.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5595FA
Deuteranopia (green-blind)
#5F93F3
Tritanopia (blue-blind)
#9795AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87ef6;
/* rgb */ color: rgb(168, 126, 246);
/* oklch */ color: oklch(68.6% 0.174 297.8);
Tailwind
colors: {
  custom: {
    50: '#c5a4fa',
    500: '#a87ef6',
    950: '#000000',
  },
}
SCSS
$custom: #a87ef6;
$custom-light: #c5a4fa;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ef6",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 261,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68555,
    "c": 0.17372,
    "h": 297.8
  },
  "luminance": 0.299
}

Semantic roles & 50–950 ramp

primary
#A87EF6
secondary
#EAF5D6
accent
#E40295
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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