#A871EA#A871EA

#A871EA is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.179 H 302.8°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#A871EA
RGBrgb(168, 113, 234)
HSLhsl(267, 74%, 68%)
HSVhsv(267, 52%, 92%)
CMYKcmyk(28.2%, 51.7%, 0%, 8.2%)
CIE-LABlab(58.11, 45.32, -53.38)
CIE-LCHlch(58.11, 70.03, 310.33°)
OKLaboklab(65.77% 0.0968 -0.1503)
OKLCHoklch(65.77% 0.179 302.8)
XYZxyz(36.9015, 26.0756, 80.9150)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871EA #B3EA71
analogous
#7176EA #A871EA #E571EA
triadic
#A871EA #EAA871 #71EAA8
tetradic
#A871EA #EA7176 #B3EA71 #71EAE5
square
#A871EA #EA7176 #B3EA71 #71EAE5
split-complementary
#A871EA #EAE571 #76EA71
monochromatic
#691DC4 #873CE2 #A871EA #C9A6F2 #E9DCFA

Accessibility & contrast

On white

3.38
#A871EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#A871EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871EA
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871EA#FFFFFF#000000##000000
##A871EA1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEE
Deuteranopia (green-blind)
#588BE7
Tritanopia (blue-blind)
#9C88A3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a871ea;
/* rgb */ color: rgb(168, 113, 234);
/* oklch */ color: oklch(65.8% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#c59bf1',
    500: '#a871ea',
    950: '#000000',
  },
}
SCSS
$custom: #a871ea;
$custom-light: #c59bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a871ea",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 267.273,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65774,
    "c": 0.17875,
    "h": 302.8
  },
  "luminance": 0.26076
}

Semantic roles & 50–950 ramp

primary
#A871EA
secondary
#DDEEC9
accent
#D60F7C
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A871EA

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

Preview Lab → · Contrast checker → · Palette generator →

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