#A171EA#A171EA

#A171EA is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.1% C 0.177 H 299.8°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#A171EA
RGBrgb(161, 113, 234)
HSLhsl(264, 74%, 68%)
HSVhsv(264, 52%, 92%)
CMYKcmyk(31.2%, 51.7%, 0%, 8.2%)
CIE-LABlab(57.39, 43.56, -54.57)
CIE-LCHlch(57.39, 69.82, 308.60°)
OKLaboklab(65.08% 0.0882 -0.1539)
OKLCHoklch(65.08% 0.177 299.8)
XYZxyz(35.4508, 25.3276, 80.8470)
Luminance0.2533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171EA #BAEA71
analogous
#717DEA #A171EA #DE71EA
triadic
#A171EA #EAA171 #71EAA1
tetradic
#A171EA #EA717D #BAEA71 #71EADE
square
#A171EA #EA717D #BAEA71 #71EADE
split-complementary
#A171EA #EADE71 #7DEA71
monochromatic
#5F1DC4 #7E3CE2 #A171EA #C4A6F2 #E8DCFA

Accessibility & contrast

On white

3.46
#A171EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#A171EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171EA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171EA#FFFFFF#000000##000000
##A171EA1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#458AEE
Deuteranopia (green-blind)
#5389E7
Tritanopia (blue-blind)
#9288A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a171ea;
/* rgb */ color: rgb(161, 113, 234);
/* oklch */ color: oklch(65.1% 0.177 299.8);
Tailwind
colors: {
  custom: {
    50: '#c09bf1',
    500: '#a171ea',
    950: '#000000',
  },
}
SCSS
$custom: #a171ea;
$custom-light: #c09bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#a171ea",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 263.802,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.65079,
    "c": 0.17739,
    "h": 299.8
  },
  "luminance": 0.25328
}

Semantic roles & 50–950 ramp

primary
#A171EA
secondary
#DFEEC9
accent
#D60F87
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A171EA

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

Preview Lab → · Contrast checker → · Palette generator →

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