#A87EC2#A87EC2

#A87EC2 is a light, moderate violet. Relative luminance 0.271; OKLCH L 65.9% C 0.108 H 311.9°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#A87EC2
RGBrgb(168, 126, 194)
HSLhsl(277, 36%, 63%)
HSVhsv(277, 35%, 76%)
CMYKcmyk(13.4%, 35.1%, 0%, 23.9%)
CIE-LABlab(59.11, 28.91, -29.32)
CIE-LCHlch(59.11, 41.17, 314.60°)
OKLaboklab(65.9% 0.0723 -0.0806)
OKLCHoklch(65.9% 0.108 311.9)
XYZxyz(33.3452, 27.1421, 54.5108)
Luminance0.2714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87EC2 #98C27E
analogous
#867EC2 #A87EC2 #C27EBA
triadic
#A87EC2 #C2A87E #7EC2A8
tetradic
#A87EC2 #C2867E #98C27E #7EBAC2
square
#A87EC2 #C2867E #98C27E #7EBAC2
split-complementary
#A87EC2 #BAC27E #7EC286
monochromatic
#6B3F86 #8C54AE #A87EC2 #C4A8D6 #E0D1E9

Accessibility & contrast

On white

3.27
#A87EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#A87EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87EC2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87EC2#FFFFFF#000000##000000
##A87EC21.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#728CC5
Deuteranopia (green-blind)
#7C8FC0
Tritanopia (blue-blind)
#A68797
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a87ec2;
/* rgb */ color: rgb(168, 126, 194);
/* oklch */ color: oklch(65.9% 0.108 311.9);
Tailwind
colors: {
  custom: {
    50: '#c3a4d4',
    500: '#a87ec2',
    950: '#000000',
  },
}
SCSS
$custom: #a87ec2;
$custom-light: #c3a4d4;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ec2",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 277.059,
    "s": 35.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.65897,
    "c": 0.10832,
    "h": 311.9
  },
  "luminance": 0.27142
}

Semantic roles & 50–950 ramp

primary
#A87EC2
secondary
#CBDAC2
accent
#AF3765
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#120F14
muted
#817F83

Preview Lab

Preview with #A87EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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