#A166D9#A166D9

#A166D9 is a light, vivid violet. Relative luminance 0.221; OKLCH L 62.4% C 0.174 H 305.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#A166D9
RGBrgb(161, 102, 217)
HSLhsl(271, 60%, 63%)
HSVhsv(271, 53%, 85%)
CMYKcmyk(25.8%, 53%, 0%, 14.9%)
CIE-LABlab(54.12, 45.48, -50.23)
CIE-LCHlch(54.12, 67.76, 312.16°)
OKLaboklab(62.35% 0.1013 -0.1412)
OKLCHoklch(62.35% 0.174 305.6)
XYZxyz(31.9711, 22.0898, 68.2117)
Luminance0.2209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166D9 #9ED966
analogous
#6866D9 #A166D9 #D966D7
triadic
#A166D9 #D9A166 #66D9A1
tetradic
#A166D9 #D96866 #9ED966 #66D7D9
square
#A166D9 #D96866 #9ED966 #66D7D9
split-complementary
#A166D9 #D7D966 #66D968
monochromatic
#64279D #8335CD #A166D9 #BF97E5 #DDC8F1

Accessibility & contrast

On white

3.88
#A166D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#A166D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166D9
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166D9#FFFFFF#000000##000000
##A166D91.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DD
Deuteranopia (green-blind)
#5382D6
Tritanopia (blue-blind)
#987B96
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #a166d9;
/* rgb */ color: rgb(161, 102, 217);
/* oklch */ color: oklch(62.4% 0.174 305.6);
Tailwind
colors: {
  custom: {
    50: '#c093e5',
    500: '#a166d9',
    950: '#000000',
  },
}
SCSS
$custom: #a166d9;
$custom-light: #c093e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a166d9",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 217
  },
  "hsl": {
    "h": 270.783,
    "s": 60.209,
    "l": 62.549
  },
  "oklch": {
    "l": 0.62354,
    "c": 0.17379,
    "h": 305.6
  },
  "luminance": 0.2209
}

Semantic roles & 50–950 ramp

primary
#A166D9
secondary
#CDE2B8
accent
#C81E71
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #A166D9

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

Preview Lab → · Contrast checker → · Palette generator →

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