#A871F7#A871F7

#A871F7 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.5% C 0.194 H 300.1°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#A871F7
RGBrgb(168, 113, 247)
HSLhsl(265, 89%, 71%)
HSVhsv(265, 54%, 97%)
CMYKcmyk(32%, 54.3%, 0%, 3.1%)
CIE-LABlab(58.84, 48.46, -59.44)
CIE-LCHlch(58.84, 76.69, 309.19°)
OKLaboklab(66.55% 0.0975 -0.168)
OKLCHoklch(66.55% 0.194 300.1)
XYZxyz(38.8381, 26.8502, 91.1141)
Luminance0.2685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871F7 #C0F771
analogous
#717DF7 #A871F7 #EB71F7
triadic
#A871F7 #F7A871 #71F7A8
tetradic
#A871F7 #F7717D #C0F771 #71F7EB
square
#A871F7 #F7717D #C0F771 #71F7EB
split-complementary
#A871F7 #F7EB71 #7DF771
monochromatic
#640DE1 #8537F4 #A871F7 #CBABFA #EDE2FD

Accessibility & contrast

On white

3.30
#A871F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#A871F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871F7
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871F7#FFFFFF#000000##000000
##A871F71.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFB
Deuteranopia (green-blind)
#4D8DF4
Tritanopia (blue-blind)
#988CA9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a871f7;
/* rgb */ color: rgb(168, 113, 247);
/* oklch */ color: oklch(66.5% 0.194 300.1);
Tailwind
colors: {
  custom: {
    50: '#c69bfa',
    500: '#a871f7',
    950: '#000000',
  },
}
SCSS
$custom: #a871f7;
$custom-light: #c69bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a871f7",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 264.627,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.66545,
    "c": 0.19424,
    "h": 300.1
  },
  "luminance": 0.2685
}

Semantic roles & 50–950 ramp

primary
#A871F7
secondary
#E5F4D0
accent
#E60087
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A871F7

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

Preview Lab → · Contrast checker → · Palette generator →

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