#A871F0#A871F0

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

Color values

HEX#A871F0
RGBrgb(168, 113, 240)
HSLhsl(266, 81%, 69%)
HSVhsv(266, 53%, 94%)
CMYKcmyk(30%, 52.9%, 0%, 5.9%)
CIE-LABlab(58.44, 46.76, -56.19)
CIE-LCHlch(58.44, 73.11, 309.77°)
OKLaboklab(66.13% 0.0972 -0.1585)
OKLCHoklch(66.13% 0.186 301.5)
XYZxyz(37.7781, 26.4262, 85.5317)
Luminance0.2643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871F0 #B9F071
analogous
#717AF0 #A871F0 #E771F0
triadic
#A871F0 #F0A871 #71F0A8
tetradic
#A871F0 #F0717A #B9F071 #71F0E7
square
#A871F0 #F0717A #B9F071 #71F0E7
split-complementary
#A871F0 #F0E771 #7AF071
monochromatic
#6716D1 #863AEA #A871F0 #CAA8F6 #ECE0FC

Accessibility & contrast

On white

3.34
#A871F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#A871F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871F0
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871F0#FFFFFF#000000##000000
##A871F01.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#428CF4
Deuteranopia (green-blind)
#538CED
Tritanopia (blue-blind)
#9A89A6
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a871f0;
/* rgb */ color: rgb(168, 113, 240);
/* oklch */ color: oklch(66.1% 0.186 301.5);
Tailwind
colors: {
  custom: {
    50: '#c59bf5',
    500: '#a871f0',
    950: '#000000',
  },
}
SCSS
$custom: #a871f0;
$custom-light: #c59bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a871f0",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 265.984,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66125,
    "c": 0.18591,
    "h": 301.5
  },
  "luminance": 0.26426
}

Semantic roles & 50–950 ramp

primary
#A871F0
secondary
#E1F1CC
accent
#DD0881
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A871F0

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

Preview Lab → · Contrast checker → · Palette generator →

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