#A171F5#A171F5

#A171F5 is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.191 H 297.7°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#A171F5
RGBrgb(161, 113, 245)
HSLhsl(262, 87%, 70%)
HSVhsv(262, 54%, 96%)
CMYKcmyk(34.3%, 53.9%, 0%, 3.9%)
CIE-LABlab(58.02, 46.31, -59.68)
CIE-LCHlch(58.02, 75.54, 307.81°)
OKLaboklab(65.74% 0.0887 -0.1689)
OKLCHoklch(65.74% 0.191 297.7)
XYZxyz(37.0804, 25.9794, 89.4294)
Luminance0.2598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171F5 #C5F571
analogous
#7183F5 #A171F5 #E371F5
triadic
#A171F5 #F5A171 #71F5A1
tetradic
#A171F5 #F57183 #C5F571 #71F5E3
square
#A171F5 #F57183 #C5F571 #71F5E3
split-complementary
#A171F5 #F5E371 #83F571
monochromatic
#5A10DC #7B38F1 #A171F5 #C7AAF9 #ECE2FD

Accessibility & contrast

On white

3.39
#A171F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#A171F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171F5
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171F5#FFFFFF#000000##000000
##A171F51.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#398CF9
Deuteranopia (green-blind)
#488AF2
Tritanopia (blue-blind)
#8E8CA8
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a171f5;
/* rgb */ color: rgb(161, 113, 245);
/* oklch */ color: oklch(65.7% 0.191 297.7);
Tailwind
colors: {
  custom: {
    50: '#c19bf9',
    500: '#a171f5',
    950: '#000000',
  },
}
SCSS
$custom: #a171f5;
$custom-light: #c19bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#a171f5",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 261.818,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.65742,
    "c": 0.19081,
    "h": 297.7
  },
  "luminance": 0.2598
}

Semantic roles & 50–950 ramp

primary
#A171F5
secondary
#E6F3CF
accent
#E30291
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#130E17
muted
#827E85

Preview Lab

Preview with #A171F5

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

Preview Lab → · Contrast checker → · Palette generator →

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