#A87EF8#A87EF8

#A87EF8 is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.7% C 0.176 H 297.4°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#A87EF8
RGBrgb(168, 126, 248)
HSLhsl(261, 90%, 73%)
HSVhsv(261, 49%, 97%)
CMYKcmyk(32.3%, 49.2%, 0%, 2.7%)
CIE-LABlab(61.67, 41.60, -55.46)
CIE-LCHlch(61.67, 69.33, 306.87°)
OKLaboklab(68.67% 0.0812 -0.1564)
OKLCHoklch(68.67% 0.176 297.4)
XYZxyz(40.5484, 30.0234, 92.4475)
Luminance0.3002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EF8 #CEF87E
analogous
#7E91F8 #A87EF8 #E57EF8
triadic
#A87EF8 #F8A87E #7EF8A8
tetradic
#A87EF8 #F87E91 #CEF87E #7EF8E5
square
#A87EF8 #F87E91 #CEF87E #7EF8E5
split-complementary
#A87EF8 #F8E57E #91F87E
monochromatic
#5B0DEF #8144F5 #A87EF8 #CFB8FB #EBE2FD

Accessibility & contrast

On white

3.00
#A87EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#A87EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A87EF8
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EF8#FFFFFF#000000##000000
##A87EF81.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5395FC
Deuteranopia (green-blind)
#5D94F5
Tritanopia (blue-blind)
#9795AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #a87ef8;
/* rgb */ color: rgb(168, 126, 248);
/* oklch */ color: oklch(68.7% 0.176 297.4);
Tailwind
colors: {
  custom: {
    50: '#c5a4fb',
    500: '#a87ef8',
    950: '#000000',
  },
}
SCSS
$custom: #a87ef8;
$custom-light: #c5a4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ef8",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 260.656,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68669,
    "c": 0.17621,
    "h": 297.4
  },
  "luminance": 0.30024
}

Semantic roles & 50–950 ramp

primary
#A87EF8
secondary
#EAF6D5
accent
#E60096
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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