#A171E7#A171E7

#A171E7 is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.9% C 0.174 H 300.4°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#A171E7
RGBrgb(161, 113, 231)
HSLhsl(264, 71%, 67%)
HSVhsv(264, 51%, 91%)
CMYKcmyk(30.3%, 51.1%, 0%, 9.4%)
CIE-LABlab(57.23, 42.83, -53.15)
CIE-LCHlch(57.23, 68.26, 308.86°)
OKLaboklab(64.9% 0.0879 -0.1498)
OKLCHoklch(64.9% 0.174 300.4)
XYZxyz(35.0235, 25.1567, 78.5964)
Luminance0.2516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171E7 #B7E771
analogous
#717CE7 #A171E7 #DC71E7
triadic
#A171E7 #E7A171 #71E7A1
tetradic
#A171E7 #E7717C #B7E771 #71E7DC
square
#A171E7 #E7717C #B7E771 #71E7DC
split-complementary
#A171E7 #E7DC71 #7CE771
monochromatic
#6020BE #7E3DDE #A171E7 #C4A5F0 #E6DAF9

Accessibility & contrast

On white

3.48
#A171E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#A171E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171E7
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171E7#FFFFFF#000000##000000
##A171E71.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4889EB
Deuteranopia (green-blind)
#5589E4
Tritanopia (blue-blind)
#9387A1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #a171e7;
/* rgb */ color: rgb(161, 113, 231);
/* oklch */ color: oklch(64.9% 0.174 300.4);
Tailwind
colors: {
  custom: {
    50: '#c09bef',
    500: '#a171e7',
    950: '#000000',
  },
}
SCSS
$custom: #a171e7;
$custom-light: #c09bef;
$custom-dark: #000000;
JSON
{
  "hex": "#a171e7",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 264.407,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.64902,
    "c": 0.17371,
    "h": 300.4
  },
  "luminance": 0.25157
}

Semantic roles & 50–950 ramp

primary
#A171E7
secondary
#DDECC7
accent
#D31285
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #A171E7

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

Preview Lab → · Contrast checker → · Palette generator →

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