#A171CC#A171CC

#A171CC is a light, vivid violet. Relative luminance 0.237; OKLCH L 63.4% C 0.140 H 307.2°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#A171CC
RGBrgb(161, 113, 204)
HSLhsl(272, 47%, 62%)
HSVhsv(272, 45%, 80%)
CMYKcmyk(21.1%, 44.6%, 0%, 20%)
CIE-LABlab(55.83, 36.39, -40.15)
CIE-LCHlch(55.83, 54.19, 312.18°)
OKLaboklab(63.41% 0.0848 -0.1119)
OKLCHoklch(63.41% 0.14 307.2)
XYZxyz(31.5000, 23.7473, 60.0393)
Luminance0.2375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171CC #9CCC71
analogous
#7471CC #A171CC #CC71CA
triadic
#A171CC #CCA171 #71CCA1
tetradic
#A171CC #CC7471 #9CCC71 #71CACC
square
#A171CC #CC7471 #9CCC71 #71CACC
split-complementary
#A171CC #CACC71 #71CC74
monochromatic
#64338F #8344BC #A171CC #BF9EDC #DDCBEC

Accessibility & contrast

On white

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

On black

5.75
#A171CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171CC
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171CC#FFFFFF#000000##000000
##A171CC1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B84CF
Deuteranopia (green-blind)
#6786CA
Tritanopia (blue-blind)
#9B8095
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a171cc;
/* rgb */ color: rgb(161, 113, 204);
/* oklch */ color: oklch(63.4% 0.140 307.2);
Tailwind
colors: {
  custom: {
    50: '#be9bdc',
    500: '#a171cc',
    950: '#000000',
  },
}
SCSS
$custom: #a171cc;
$custom-light: #be9bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a171cc",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 271.648,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.63409,
    "c": 0.14044,
    "h": 307.2
  },
  "luminance": 0.23747
}

Semantic roles & 50–950 ramp

primary
#A171CC
secondary
#CBDDBC
accent
#BA2B6F
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A171CC

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

Preview Lab → · Contrast checker → · Palette generator →

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