#A171F7#A171F7

#A171F7 is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.9% C 0.193 H 297.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#A171F7
RGBrgb(161, 113, 247)
HSLhsl(261, 89%, 71%)
HSVhsv(261, 54%, 97%)
CMYKcmyk(34.8%, 54.3%, 0%, 3.1%)
CIE-LABlab(58.13, 46.81, -60.60)
CIE-LCHlch(58.13, 76.58, 307.68°)
OKLaboklab(65.87% 0.0888 -0.1716)
OKLCHoklch(65.87% 0.193 297.3)
XYZxyz(37.3874, 26.1022, 91.0461)
Luminance0.2610 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171F7 #C7F771
analogous
#7184F7 #A171F7 #E471F7
triadic
#A171F7 #F7A171 #71F7A1
tetradic
#A171F7 #F77184 #C7F771 #71F7E4
square
#A171F7 #F77184 #C7F771 #71F7E4
split-complementary
#A171F7 #F7E471 #84F771
monochromatic
#590DE1 #7B37F4 #A171F7 #C7ABFA #ECE2FD

Accessibility & contrast

On white

3.38
#A171F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#A171F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171F7
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171F7#FFFFFF#000000##000000
##A171F71.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#368CFC
Deuteranopia (green-blind)
#468AF4
Tritanopia (blue-blind)
#8E8CA9
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #a171f7;
/* rgb */ color: rgb(161, 113, 247);
/* oklch */ color: oklch(65.9% 0.193 297.3);
Tailwind
colors: {
  custom: {
    50: '#c19bfa',
    500: '#a171f7',
    950: '#000000',
  },
}
SCSS
$custom: #a171f7;
$custom-light: #c19bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#a171f7",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 261.493,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65866,
    "c": 0.19324,
    "h": 297.3
  },
  "luminance": 0.26103
}

Semantic roles & 50–950 ramp

primary
#A171F7
secondary
#E7F4D0
accent
#E60093
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A171F7

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

Preview Lab → · Contrast checker → · Palette generator →

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