#A171FC#A171FC

#A171FC is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.2% C 0.199 H 296.5°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#A171FC
RGBrgb(161, 113, 252)
HSLhsl(261, 96%, 72%)
HSVhsv(261, 55%, 99%)
CMYKcmyk(36.1%, 55.2%, 0%, 1.2%)
CIE-LABlab(58.43, 48.07, -62.89)
CIE-LCHlch(58.43, 79.16, 307.39°)
OKLaboklab(66.18% 0.0889 -0.1784)
OKLCHoklch(66.18% 0.199 296.5)
XYZxyz(38.1693, 26.4150, 95.1642)
Luminance0.2642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171FC #CCFC71
analogous
#7187FC #A171FC #E671FC
triadic
#A171FC #FCA171 #71FCA1
tetradic
#A171FC #FC7187 #CCFC71 #71FCE6
square
#A171FC #FC7187 #CCFC71 #71FCE6
split-complementary
#A171FC #FCE671 #87FC71
monochromatic
#5505EE #7935FB #A171FC #C9ADFD #EBE1FE

Accessibility & contrast

On white

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

On black

6.28
#A171FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171FC
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171FC#FFFFFF#000000##000000
##A171FC1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F8DFF
Deuteranopia (green-blind)
#408BF9
Tritanopia (blue-blind)
#8C8EAC
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a171fc;
/* rgb */ color: rgb(161, 113, 252);
/* oklch */ color: oklch(66.2% 0.199 296.5);
Tailwind
colors: {
  custom: {
    50: '#c19bfe',
    500: '#a171fc',
    950: '#000000',
  },
}
SCSS
$custom: #a171fc;
$custom-light: #c19bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#a171fc",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 260.719,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.66178,
    "c": 0.19929,
    "h": 296.5
  },
  "luminance": 0.26416
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A171FC

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

Preview Lab → · Contrast checker → · Palette generator →

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