#A171EB#A171EB

#A171EB is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.1% C 0.179 H 299.6°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#A171EB
RGBrgb(161, 113, 235)
HSLhsl(264, 75%, 68%)
HSVhsv(264, 52%, 92%)
CMYKcmyk(31.5%, 51.9%, 0%, 7.8%)
CIE-LABlab(57.45, 43.81, -55.03)
CIE-LCHlch(57.45, 70.34, 308.52°)
OKLaboklab(65.14% 0.0882 -0.1553)
OKLCHoklch(65.14% 0.179 299.6)
XYZxyz(35.5949, 25.3852, 81.6057)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171EB #BBEB71
analogous
#717EEB #A171EB #DE71EB
triadic
#A171EB #EBA171 #71EBA1
tetradic
#A171EB #EB717E #BBEB71 #71EBDE
square
#A171EB #EB717E #BBEB71 #71EBDE
split-complementary
#A171EB #EBDE71 #7EEB71
monochromatic
#5F1CC6 #7D3BE3 #A171EB #C5A7F3 #E8DCFA

Accessibility & contrast

On white

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

On black

6.08
#A171EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171EB
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171EB#FFFFFF#000000##000000
##A171EB1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#448AEF
Deuteranopia (green-blind)
#5289E8
Tritanopia (blue-blind)
#9289A3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #a171eb;
/* rgb */ color: rgb(161, 113, 235);
/* oklch */ color: oklch(65.1% 0.179 299.6);
Tailwind
colors: {
  custom: {
    50: '#c09bf2',
    500: '#a171eb',
    950: '#000000',
  },
}
SCSS
$custom: #a171eb;
$custom-light: #c09bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#a171eb",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 263.607,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.65138,
    "c": 0.17861,
    "h": 299.6
  },
  "luminance": 0.25385
}

Semantic roles & 50–950 ramp

primary
#A171EB
secondary
#E0EEC9
accent
#D70E88
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #A171EB

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

Preview Lab → · Contrast checker → · Palette generator →

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