#A166C7#A166C7

#A166C7 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.3% C 0.153 H 310.7°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A166C7
RGBrgb(161, 102, 199)
HSLhsl(276, 46%, 59%)
HSVhsv(276, 49%, 78%)
CMYKcmyk(19.1%, 48.7%, 0%, 22%)
CIE-LABlab(53.17, 41.35, -41.50)
CIE-LCHlch(53.17, 58.59, 314.90°)
OKLaboklab(61.34% 0.0996 -0.1158)
OKLCHoklch(61.34% 0.153 310.7)
XYZxyz(29.7562, 21.2039, 56.5470)
Luminance0.2120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166C7 #8CC766
analogous
#7166C7 #A166C7 #C766BC
triadic
#A166C7 #C7A166 #66C7A1
tetradic
#A166C7 #C77166 #8CC766 #66BCC7
square
#A166C7 #C77166 #8CC766 #66BCC7
split-complementary
#A166C7 #BCC766 #66C771
monochromatic
#623083 #8440B0 #A166C7 #BD93D7 #D8C0E8

Accessibility & contrast

On white

4.01
#A166C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#A166C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166C7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166C7#FFFFFF#000000##000000
##A166C71.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E7CCA
Deuteranopia (green-blind)
#5F80C4
Tritanopia (blue-blind)
#9D768D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #a166c7;
/* rgb */ color: rgb(161, 102, 199);
/* oklch */ color: oklch(61.3% 0.153 310.7);
Tailwind
colors: {
  custom: {
    50: '#bf93d8',
    500: '#a166c7',
    950: '#000000',
  },
}
SCSS
$custom: #a166c7;
$custom-light: #bf93d8;
$custom-dark: #000000;
JSON
{
  "hex": "#a166c7",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 199
  },
  "hsl": {
    "h": 276.495,
    "s": 46.411,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61341,
    "c": 0.15273,
    "h": 310.7
  },
  "luminance": 0.21203
}

Semantic roles & 50–950 ramp

primary
#A166C7
secondary
#C0D7B1
accent
#D65286
background
#FBF9FD
surface
#F7F1FA
border
#D0CBD3
text
#120D14
muted
#817E83

Preview Lab

Preview with #A166C7

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

Preview Lab → · Contrast checker → · Palette generator →

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