#A166E5#A166E5

#A166E5 is a light, vivid violet. Relative luminance 0.227; OKLCH L 63.1% C 0.188 H 302.8°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#A166E5
RGBrgb(161, 102, 229)
HSLhsl(268, 71%, 65%)
HSVhsv(268, 55%, 90%)
CMYKcmyk(29.7%, 55.5%, 0%, 10.2%)
CIE-LABlab(54.80, 48.33, -55.91)
CIE-LCHlch(54.80, 73.90, 310.84°)
OKLaboklab(63.07% 0.1018 -0.1579)
OKLCHoklch(63.07% 0.188 302.8)
XYZxyz(33.5890, 22.7370, 76.7327)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166E5 #AAE566
analogous
#666AE5 #A166E5 #E166E5
triadic
#A166E5 #E5A166 #66E5A1
tetradic
#A166E5 #E5666A #AAE566 #66E5E1
square
#A166E5 #E5666A #AAE566 #66E5E1
split-complementary
#A166E5 #E5E166 #6AE566
monochromatic
#631EB2 #8132DC #A166E5 #C19AEE #E1CFF7

Accessibility & contrast

On white

3.79
#A166E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#A166E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166E5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166E5#FFFFFF#000000##000000
##A166E51.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3382E9
Deuteranopia (green-blind)
#4983E2
Tritanopia (blue-blind)
#947F9C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #a166e5;
/* rgb */ color: rgb(161, 102, 229);
/* oklch */ color: oklch(63.1% 0.188 302.8);
Tailwind
colors: {
  custom: {
    50: '#c094ee',
    500: '#a166e5',
    950: '#000000',
  },
}
SCSS
$custom: #a166e5;
$custom-light: #c094ee;
$custom-dark: #000000;
JSON
{
  "hex": "#a166e5",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 267.874,
    "s": 70.95,
    "l": 64.902
  },
  "oklch": {
    "l": 0.63072,
    "c": 0.18784,
    "h": 302.8
  },
  "luminance": 0.22737
}

Semantic roles & 50–950 ramp

primary
#A166E5
secondary
#D5E9BE
accent
#D3137A
background
#FCF9FE
surface
#F8F1FD
border
#D1CBD5
text
#130D16
muted
#827E84

Preview Lab

Preview with #A166E5

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

Preview Lab → · Contrast checker → · Palette generator →

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