#A871F9#A871F9

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

Color values

HEX#A871F9
RGBrgb(168, 113, 249)
HSLhsl(264, 92%, 71%)
HSVhsv(264, 55%, 98%)
CMYKcmyk(32.5%, 54.6%, 0%, 2.4%)
CIE-LABlab(58.95, 48.95, -60.36)
CIE-LCHlch(58.95, 77.72, 309.04°)
OKLaboklab(66.67% 0.0975 -0.1707)
OKLCHoklch(66.67% 0.197 299.7)
XYZxyz(39.1484, 26.9743, 92.7482)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A871F9 #C2F971
analogous
#717EF9 #A871F9 #EC71F9
triadic
#A871F9 #F9A871 #71F9A8
tetradic
#A871F9 #F9717E #C2F971 #71F9EC
square
#A871F9 #F9717E #C2F971 #71F9EC
split-complementary
#A871F9 #F9EC71 #7EF971
monochromatic
#630AE6 #8436F7 #A871F9 #CCACFB #EDE2FE

Accessibility & contrast

On white

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

On black

6.40
#A871F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A871F9
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A871F9#FFFFFF#000000##000000
##A871F91.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#388EFE
Deuteranopia (green-blind)
#4B8DF6
Tritanopia (blue-blind)
#978CAA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #a871f9;
/* rgb */ color: rgb(168, 113, 249);
/* oklch */ color: oklch(66.7% 0.197 299.7);
Tailwind
colors: {
  custom: {
    50: '#c69bfc',
    500: '#a871f9',
    950: '#000000',
  },
}
SCSS
$custom: #a871f9;
$custom-light: #c69bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#a871f9",
  "rgb": {
    "r": 168,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 264.265,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.66667,
    "c": 0.19662,
    "h": 299.7
  },
  "luminance": 0.26975
}

Semantic roles & 50–950 ramp

primary
#A871F9
secondary
#E6F5D1
accent
#E60089
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A871F9

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

Preview Lab → · Contrast checker → · Palette generator →

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