#A171CD#A171CD

#A171CD is a light, vivid violet. Relative luminance 0.238; OKLCH L 63.5% C 0.142 H 306.9°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#A171CD
RGBrgb(161, 113, 205)
HSLhsl(271, 48%, 62%)
HSVhsv(271, 45%, 80%)
CMYKcmyk(21.5%, 44.9%, 0%, 19.6%)
CIE-LABlab(55.88, 36.62, -40.64)
CIE-LCHlch(55.88, 54.71, 312.02°)
OKLaboklab(63.46% 0.085 -0.1133)
OKLCHoklch(63.46% 0.142 306.9)
XYZxyz(31.6203, 23.7954, 60.6729)
Luminance0.2379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171CD #9DCD71
analogous
#7371CD #A171CD #CD71CB
triadic
#A171CD #CDA171 #71CDA1
tetradic
#A171CD #CD7371 #9DCD71 #71CBCD
square
#A171CD #CD7371 #9DCD71 #71CBCD
split-complementary
#A171CD #CBCD71 #71CD73
monochromatic
#643391 #8344BD #A171CD #BF9EDD #DDCCED

Accessibility & contrast

On white

3.65
#A171CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#A171CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171CD
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171CD#FFFFFF#000000##000000
##A171CD1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A84D0
Deuteranopia (green-blind)
#6686CB
Tritanopia (blue-blind)
#9B8095
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a171cd;
/* rgb */ color: rgb(161, 113, 205);
/* oklch */ color: oklch(63.5% 0.142 306.9);
Tailwind
colors: {
  custom: {
    50: '#be9bdc',
    500: '#a171cd',
    950: '#000000',
  },
}
SCSS
$custom: #a171cd;
$custom-light: #be9bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a171cd",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 271.304,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.63461,
    "c": 0.14167,
    "h": 306.9
  },
  "luminance": 0.23795
}

Semantic roles & 50–950 ramp

primary
#A171CD
secondary
#CCDEBC
accent
#BB2A70
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A171CD

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

Preview Lab → · Contrast checker → · Palette generator →

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