#A871EF#A871EF

#A871EF is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.1% C 0.185 H 301.7°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#A871EF
RGBrgb(168, 113, 239)
HSLhsl(266, 80%, 69%)
HSVhsv(266, 53%, 94%)
CMYKcmyk(29.7%, 52.7%, 0%, 6.3%)
CIE-LABlab(58.38, 46.52, -55.73)
CIE-LCHlch(58.38, 72.59, 309.86°)
OKLaboklab(66.07% 0.0971 -0.1572)
OKLCHoklch(66.07% 0.185 301.7)
XYZxyz(37.6300, 26.3670, 84.7515)
Luminance0.2637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871EF #B8EF71
analogous
#7179EF #A871EF #E771EF
triadic
#A871EF #EFA871 #71EFA8
tetradic
#A871EF #EF7179 #B8EF71 #71EFE7
square
#A871EF #EF7179 #B8EF71 #71EFE7
split-complementary
#A871EF #EFE771 #79EF71
monochromatic
#6717CE #863AE9 #A871EF #CAA8F5 #EBDFFB

Accessibility & contrast

On white

3.35
#A871EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#A871EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871EF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871EF#FFFFFF#000000##000000
##A871EF1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#438CF3
Deuteranopia (green-blind)
#548CEC
Tritanopia (blue-blind)
#9A89A5
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a871ef;
/* rgb */ color: rgb(168, 113, 239);
/* oklch */ color: oklch(66.1% 0.185 301.7);
Tailwind
colors: {
  custom: {
    50: '#c59bf5',
    500: '#a871ef',
    950: '#000000',
  },
}
SCSS
$custom: #a871ef;
$custom-light: #c59bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a871ef",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 266.19,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66066,
    "c": 0.18472,
    "h": 301.7
  },
  "luminance": 0.26367
}

Semantic roles & 50–950 ramp

primary
#A871EF
secondary
#E0F0CB
accent
#DC0980
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A871EF

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

Preview Lab → · Contrast checker → · Palette generator →

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