#A166D8#A166D8

#A166D8 is a light, vivid violet. Relative luminance 0.220; OKLCH L 62.3% C 0.173 H 305.9°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#A166D8
RGBrgb(161, 102, 216)
HSLhsl(271, 59%, 62%)
HSVhsv(271, 53%, 85%)
CMYKcmyk(25.5%, 52.8%, 0%, 15.3%)
CIE-LABlab(54.07, 45.25, -49.75)
CIE-LCHlch(54.07, 67.25, 312.28°)
OKLaboklab(62.3% 0.1012 -0.1398)
OKLCHoklch(62.3% 0.173 305.9)
XYZxyz(31.8414, 22.0379, 67.5287)
Luminance0.2204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166D8 #9DD866
analogous
#6866D8 #A166D8 #D866D6
triadic
#A166D8 #D8A166 #66D8A1
tetradic
#A166D8 #D86866 #9DD866 #66D6D8
square
#A166D8 #D86866 #9DD866 #66D6D8
split-complementary
#A166D8 #D6D866 #66D868
monochromatic
#64289C #8335CC #A166D8 #BF97E4 #DDC8F1

Accessibility & contrast

On white

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

On black

5.41
#A166D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166D8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166D8#FFFFFF#000000##000000
##A166D81.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#417FDC
Deuteranopia (green-blind)
#5482D5
Tritanopia (blue-blind)
#987B95
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #a166d8;
/* rgb */ color: rgb(161, 102, 216);
/* oklch */ color: oklch(62.3% 0.173 305.9);
Tailwind
colors: {
  custom: {
    50: '#c093e4',
    500: '#a166d8',
    950: '#000000',
  },
}
SCSS
$custom: #a166d8;
$custom-light: #c093e4;
$custom-dark: #000000;
JSON
{
  "hex": "#a166d8",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 216
  },
  "hsl": {
    "h": 271.053,
    "s": 59.375,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62295,
    "c": 0.17262,
    "h": 305.9
  },
  "luminance": 0.22038
}

Semantic roles & 50–950 ramp

primary
#A166D8
secondary
#CCE2B8
accent
#C71E70
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#120D16
muted
#817E84

Preview Lab

Preview with #A166D8

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

Preview Lab → · Contrast checker → · Palette generator →

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