#A171FB#A171FB

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

Color values

HEX#A171FB
RGBrgb(161, 113, 251)
HSLhsl(261, 95%, 71%)
HSVhsv(261, 55%, 98%)
CMYKcmyk(35.9%, 55%, 0%, 1.6%)
CIE-LABlab(58.37, 47.82, -62.44)
CIE-LCHlch(58.37, 78.65, 307.45°)
OKLaboklab(66.11% 0.0889 -0.177)
OKLCHoklch(66.11% 0.198 296.7)
XYZxyz(38.0112, 26.3518, 94.3318)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171FB #CBFB71
analogous
#7186FB #A171FB #E671FB
triadic
#A171FB #FBA171 #71FBA1
tetradic
#A171FB #FB7186 #CBFB71 #71FBE6
square
#A171FB #FB7186 #CBFB71 #71FBE6
split-complementary
#A171FB #FBE671 #86FB71
monochromatic
#5607EB #7A35F9 #A171FB #C8ADFD #EBE1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A171FB#FFFFFF#000000##000000
##A171FB1.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)
#318DFF
Deuteranopia (green-blind)
#418BF8
Tritanopia (blue-blind)
#8C8DAB
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a171fb;
/* rgb */ color: rgb(161, 113, 251);
/* oklch */ color: oklch(66.1% 0.198 296.7);
Tailwind
colors: {
  custom: {
    50: '#c19bfd',
    500: '#a171fb',
    950: '#000000',
  },
}
SCSS
$custom: #a171fb;
$custom-light: #c19bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#a171fb",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 260.87,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.66115,
    "c": 0.19808,
    "h": 296.7
  },
  "luminance": 0.26352
}

Semantic roles & 50–950 ramp

primary
#A171FB
secondary
#E9F6D2
accent
#E60096
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E18
muted
#827E86

Preview Lab

Preview with #A171FB

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

Preview Lab → · Contrast checker → · Palette generator →

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