#A87FEB#A87FEB

#A87FEB is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.1% C 0.158 H 299.7°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#A87FEB
RGBrgb(168, 127, 235)
HSLhsl(263, 73%, 71%)
HSVhsv(263, 46%, 92%)
CMYKcmyk(28.5%, 46%, 0%, 7.8%)
CIE-LABlab(61.22, 37.83, -49.00)
CIE-LCHlch(61.22, 61.90, 307.67°)
OKLaboklab(68.11% 0.0785 -0.1375)
OKLCHoklch(68.11% 0.158 299.7)
XYZxyz(38.7297, 29.5015, 82.2351)
Luminance0.2950 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87FEB #C2EB7F
analogous
#7F8CEB #A87FEB #DE7FEB
triadic
#A87FEB #EBA87F #7FEBA8
tetradic
#A87FEB #EB7F8C #C2EB7F #7FEBDE
square
#A87FEB #EB7F8C #C2EB7F #7FEBDE
split-complementary
#A87FEB #EBDE7F #8CEB7F
monochromatic
#6320CF #844AE3 #A87FEB #CCB4F3 #EDE5FB

Accessibility & contrast

On white

3.04
#A87FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#A87FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87FEB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87FEB#FFFFFF#000000##000000
##A87FEB1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E94EF
Deuteranopia (green-blind)
#6893E8
Tritanopia (blue-blind)
#9B92AA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87feb;
/* rgb */ color: rgb(168, 127, 235);
/* oklch */ color: oklch(68.1% 0.158 299.7);
Tailwind
colors: {
  custom: {
    50: '#c4a5f2',
    500: '#a87feb',
    950: '#000000',
  },
}
SCSS
$custom: #a87feb;
$custom-light: #c4a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a87feb",
  "rgb": {
    "r": 168,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 262.778,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68111,
    "c": 0.15833,
    "h": 299.7
  },
  "luminance": 0.29502
}

Semantic roles & 50–950 ramp

primary
#A87FEB
secondary
#E6F1D5
accent
#D5108A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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