#A171E9#A171E9

#A171E9 is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.0% C 0.176 H 300.0°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#A171E9
RGBrgb(161, 113, 233)
HSLhsl(264, 73%, 68%)
HSVhsv(264, 52%, 91%)
CMYKcmyk(30.9%, 51.5%, 0%, 8.6%)
CIE-LABlab(57.34, 43.32, -54.10)
CIE-LCHlch(57.34, 69.30, 308.69°)
OKLaboklab(65.02% 0.0881 -0.1526)
OKLCHoklch(65.02% 0.176 300)
XYZxyz(35.3076, 25.2703, 80.0925)
Luminance0.2527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171E9 #B9E971
analogous
#717DE9 #A171E9 #DD71E9
triadic
#A171E9 #E9A171 #71E9A1
tetradic
#A171E9 #E9717D #B9E971 #71E9DD
square
#A171E9 #E9717D #B9E971 #71E9DD
split-complementary
#A171E9 #E9DD71 #7DE971
monochromatic
#5F1EC2 #7E3CE1 #A171E9 #C4A6F1 #E7DBF9

Accessibility & contrast

On white

3.47
#A171E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#A171E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171E9
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171E9#FFFFFF#000000##000000
##A171E91.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4689ED
Deuteranopia (green-blind)
#5389E6
Tritanopia (blue-blind)
#9288A2
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a171e9;
/* rgb */ color: rgb(161, 113, 233);
/* oklch */ color: oklch(65.0% 0.176 300.0);
Tailwind
colors: {
  custom: {
    50: '#c09bf0',
    500: '#a171e9',
    950: '#000000',
  },
}
SCSS
$custom: #a171e9;
$custom-light: #c09bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#a171e9",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 264,
    "s": 73.171,
    "l": 67.843
  },
  "oklch": {
    "l": 0.6502,
    "c": 0.17616,
    "h": 300
  },
  "luminance": 0.25271
}

Semantic roles & 50–950 ramp

primary
#A171E9
secondary
#DFEDC8
accent
#D51086
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A171E9

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

Preview Lab → · Contrast checker → · Palette generator →

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