#A171D0#A171D0

#A171D0 is a light, vivid violet. Relative luminance 0.239; OKLCH L 63.6% C 0.145 H 306.0°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#A171D0
RGBrgb(161, 113, 208)
HSLhsl(270, 50%, 63%)
HSVhsv(270, 46%, 82%)
CMYKcmyk(22.6%, 45.7%, 0%, 18.4%)
CIE-LABlab(56.03, 37.31, -42.11)
CIE-LCHlch(56.03, 56.27, 311.54°)
OKLaboklab(63.62% 0.0854 -0.1176)
OKLCHoklch(63.62% 0.145 306)
XYZxyz(31.9859, 23.9416, 62.5984)
Luminance0.2394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A171D0 #A0D071
analogous
#7171D0 #A171D0 #D071CF
triadic
#A171D0 #D0A171 #71D0A1
tetradic
#A171D0 #D07171 #A0D071 #71CFD0
square
#A171D0 #D07171 #A0D071 #71CFD0
split-complementary
#A171D0 #CFD071 #71D071
monochromatic
#643195 #8343C1 #A171D0 #BF9FDF #DECDEE

Accessibility & contrast

On white

3.63
#A171D0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#A171D0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A171D0
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A171D0#FFFFFF#000000##000000
##A171D01.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5985D3
Deuteranopia (green-blind)
#6587CE
Tritanopia (blue-blind)
#9A8197
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #a171d0;
/* rgb */ color: rgb(161, 113, 208);
/* oklch */ color: oklch(63.6% 0.145 306.0);
Tailwind
colors: {
  custom: {
    50: '#bf9bdf',
    500: '#a171d0',
    950: '#000000',
  },
}
SCSS
$custom: #a171d0;
$custom-light: #bf9bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#a171d0",
  "rgb": {
    "r": 161,
    "g": 113,
    "b": 208
  },
  "hsl": {
    "h": 270.316,
    "s": 50.265,
    "l": 62.941
  },
  "oklch": {
    "l": 0.6362,
    "c": 0.14536,
    "h": 306
  },
  "luminance": 0.23941
}

Semantic roles & 50–950 ramp

primary
#A171D0
secondary
#CEDFBD
accent
#BE2872
background
#FBF9FD
surface
#F7F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #A171D0

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

Preview Lab → · Contrast checker → · Palette generator →

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