#A171EF#A171EF

#A171EF is a light, vivid violet. Relative luminance 0.256; OKLCH L 65.4% C 0.184 H 298.8°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#A171EF
RGBrgb(161, 113, 239)
HSLhsl(263, 80%, 69%)
HSVhsv(263, 53%, 94%)
CMYKcmyk(32.6%, 52.7%, 0%, 6.3%)
CIE-LABlab(57.67, 44.80, -56.90)
CIE-LCHlch(57.67, 72.42, 308.22°)
OKLaboklab(65.38% 0.0884 -0.1608)
OKLCHoklch(65.38% 0.184 298.8)
XYZxyz(36.1793, 25.6190, 84.6835)
Luminance0.2562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171EF #BFEF71
analogous
#7180EF #A171EF #E071EF
triadic
#A171EF #EFA171 #71EFA1
tetradic
#A171EF #EF7180 #BFEF71 #71EFE0
square
#A171EF #EF7180 #BFEF71 #71EFE0
split-complementary
#A171EF #EFE071 #80EF71
monochromatic
#5D17CE #7D3AE9 #A171EF #C5A8F5 #EADFFB

Accessibility & contrast

On white

3.43
#A171EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#A171EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171EF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171EF#FFFFFF#000000##000000
##A171EF1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#408BF3
Deuteranopia (green-blind)
#4E89EC
Tritanopia (blue-blind)
#908AA5
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #a171ef;
/* rgb */ color: rgb(161, 113, 239);
/* oklch */ color: oklch(65.4% 0.184 298.8);
Tailwind
colors: {
  custom: {
    50: '#c09bf5',
    500: '#a171ef',
    950: '#000000',
  },
}
SCSS
$custom: #a171ef;
$custom-light: #c09bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#a171ef",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 262.857,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.65377,
    "c": 0.18351,
    "h": 298.8
  },
  "luminance": 0.25619
}

Semantic roles & 50–950 ramp

primary
#A171EF
secondary
#E2F0CB
accent
#DC098C
background
#FCF9FF
surface
#F8F2FE
border
#D1CCD6
text
#130E17
muted
#827E85

Preview Lab

Preview with #A171EF

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

Preview Lab → · Contrast checker → · Palette generator →

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