#A87FEC#A87FEC

#A87FEC is a light, vivid violet. Relative luminance 0.296; OKLCH L 68.2% C 0.160 H 299.5°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#A87FEC
RGBrgb(168, 127, 236)
HSLhsl(263, 74%, 71%)
HSVhsv(263, 46%, 93%)
CMYKcmyk(28.8%, 46.2%, 0%, 7.5%)
CIE-LABlab(61.27, 38.08, -49.47)
CIE-LCHlch(61.27, 62.43, 307.59°)
OKLaboklab(68.16% 0.0786 -0.1389)
OKLCHoklch(68.16% 0.16 299.5)
XYZxyz(38.8746, 29.5594, 82.9981)
Luminance0.2956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87FEC #C3EC7F
analogous
#7F8CEC #A87FEC #DF7FEC
triadic
#A87FEC #ECA87F #7FECA8
tetradic
#A87FEC #EC7F8C #C3EC7F #7FECDF
square
#A87FEC #EC7F8C #C3EC7F #7FECDF
split-complementary
#A87FEC #ECDF7F #8CEC7F
monochromatic
#621FD2 #844AE4 #A87FEC #CCB4F4 #EDE4FB

Accessibility & contrast

On white

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

On black

6.91
#A87FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87FEC
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87FEC#FFFFFF#000000##000000
##A87FEC1.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E94F0
Deuteranopia (green-blind)
#6793E9
Tritanopia (blue-blind)
#9A93AA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #a87fec;
/* rgb */ color: rgb(168, 127, 236);
/* oklch */ color: oklch(68.2% 0.160 299.5);
Tailwind
colors: {
  custom: {
    50: '#c4a5f2',
    500: '#a87fec',
    950: '#000000',
  },
}
SCSS
$custom: #a87fec;
$custom-light: #c4a5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a87fec",
  "rgb": {
    "r": 168,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 262.569,
    "s": 74.15,
    "l": 71.176
  },
  "oklch": {
    "l": 0.68165,
    "c": 0.15959,
    "h": 299.5
  },
  "luminance": 0.2956
}

Semantic roles & 50–950 ramp

primary
#A87FEC
secondary
#E7F2D5
accent
#D60F8B
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#130F17
muted
#827F85

Preview Lab

Preview with #A87FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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