#A166EC#A166EC

#A166EC is a light, vivid violet. Relative luminance 0.231; OKLCH L 63.5% C 0.196 H 301.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#A166EC
RGBrgb(161, 102, 236)
HSLhsl(266, 78%, 66%)
HSVhsv(266, 57%, 93%)
CMYKcmyk(31.8%, 56.8%, 0%, 7.5%)
CIE-LABlab(55.21, 50.02, -59.17)
CIE-LCHlch(55.21, 77.48, 310.21°)
OKLaboklab(63.51% 0.1019 -0.1674)
OKLCHoklch(63.51% 0.196 301.3)
XYZxyz(34.5861, 23.1358, 81.9842)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166EC #B1EC66
analogous
#666EEC #A166EC #E466EC
triadic
#A166EC #ECA166 #66ECA1
tetradic
#A166EC #EC666E #B1EC66 #66ECE4
square
#A166EC #EC666E #B1EC66 #66ECE4
split-complementary
#A166EC #ECE466 #6EEC66
monochromatic
#6218C0 #8030E5 #A166EC #C29CF3 #E4D3FA

Accessibility & contrast

On white

3.73
#A166EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#A166EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166EC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166EC#FFFFFF#000000##000000
##A166EC1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2983F0
Deuteranopia (green-blind)
#4284E9
Tritanopia (blue-blind)
#92819F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a166ec;
/* rgb */ color: rgb(161, 102, 236);
/* oklch */ color: oklch(63.5% 0.196 301.3);
Tailwind
colors: {
  custom: {
    50: '#c194f3',
    500: '#a166ec',
    950: '#000000',
  },
}
SCSS
$custom: #a166ec;
$custom-light: #c194f3;
$custom-dark: #000000;
JSON
{
  "hex": "#a166ec",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 236
  },
  "hsl": {
    "h": 266.418,
    "s": 77.907,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63507,
    "c": 0.19602,
    "h": 301.3
  },
  "luminance": 0.23136
}

Semantic roles & 50–950 ramp

primary
#A166EC
secondary
#DAEDC1
accent
#DA0B7F
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #A166EC

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

Preview Lab → · Contrast checker → · Palette generator →

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