#A871FA#A871FA

#A871FA is a light, vivid violet. Relative luminance 0.270; OKLCH L 66.7% C 0.198 H 299.5°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#A871FA
RGBrgb(168, 113, 250)
HSLhsl(264, 93%, 71%)
HSVhsv(264, 55%, 98%)
CMYKcmyk(32.8%, 54.8%, 0%, 2%)
CIE-LABlab(59.01, 49.20, -60.82)
CIE-LCHlch(59.01, 78.23, 308.97°)
OKLaboklab(66.73% 0.0975 -0.1721)
OKLCHoklch(66.73% 0.198 299.5)
XYZxyz(39.3047, 27.0369, 93.5718)
Luminance0.2704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871FA #C3FA71
analogous
#717EFA #A871FA #ED71FA
triadic
#A871FA #FAA871 #71FAA8
tetradic
#A871FA #FA717E #C3FA71 #71FAED
square
#A871FA #FA717E #C3FA71 #71FAED
split-complementary
#A871FA #FAED71 #7EFA71
monochromatic
#6208E8 #8436F8 #A871FA #CCACFC #EDE1FE

Accessibility & contrast

On white

3.28
#A871FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#A871FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871FA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871FA#FFFFFF#000000##000000
##A871FA1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#378EFF
Deuteranopia (green-blind)
#4A8DF7
Tritanopia (blue-blind)
#978CAB
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a871fa;
/* rgb */ color: rgb(168, 113, 250);
/* oklch */ color: oklch(66.7% 0.198 299.5);
Tailwind
colors: {
  custom: {
    50: '#c69bfd',
    500: '#a871fa',
    950: '#000000',
  },
}
SCSS
$custom: #a871fa;
$custom-light: #c69bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a871fa",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 264.088,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.66729,
    "c": 0.1978,
    "h": 299.5
  },
  "luminance": 0.27037
}

Semantic roles & 50–950 ramp

primary
#A871FA
secondary
#E7F5D1
accent
#E60089
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A871FA

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

Preview Lab → · Contrast checker → · Palette generator →

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