#A166EB#A166EB

#A166EB is a light, vivid violet. Relative luminance 0.231; OKLCH L 63.4% C 0.195 H 301.5°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#A166EB
RGBrgb(161, 102, 235)
HSLhsl(267, 77%, 66%)
HSVhsv(267, 57%, 92%)
CMYKcmyk(31.5%, 56.6%, 0%, 7.8%)
CIE-LABlab(55.15, 49.77, -58.71)
CIE-LCHlch(55.15, 76.97, 310.29°)
OKLaboklab(63.44% 0.1019 -0.1661)
OKLCHoklch(63.44% 0.195 301.5)
XYZxyz(34.4412, 23.0779, 81.2211)
Luminance0.2308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166EB #B0EB66
analogous
#666DEB #A166EB #E466EB
triadic
#A166EB #EBA166 #66EBA1
tetradic
#A166EB #EB666D #B0EB66 #66EBE4
square
#A166EB #EB666D #B0EB66 #66EBE4
split-complementary
#A166EB #EBE466 #6DEB66
monochromatic
#6219BE #8030E4 #A166EB #C29CF2 #E4D2F9

Accessibility & contrast

On white

3.74
#A166EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#A166EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166EB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166EB#FFFFFF#000000##000000
##A166EB1.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B83EF
Deuteranopia (green-blind)
#4383E8
Tritanopia (blue-blind)
#92819F
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #a166eb;
/* rgb */ color: rgb(161, 102, 235);
/* oklch */ color: oklch(63.4% 0.195 301.5);
Tailwind
colors: {
  custom: {
    50: '#c194f2',
    500: '#a166eb',
    950: '#000000',
  },
}
SCSS
$custom: #a166eb;
$custom-light: #c194f2;
$custom-dark: #000000;
JSON
{
  "hex": "#a166eb",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 235
  },
  "hsl": {
    "h": 266.617,
    "s": 76.879,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63444,
    "c": 0.19485,
    "h": 301.5
  },
  "luminance": 0.23078
}

Semantic roles & 50–950 ramp

primary
#A166EB
secondary
#D9ECC1
accent
#D90C7E
background
#FCF9FE
surface
#F8F2FD
border
#D1CCD5
text
#130D17
muted
#827E85

Preview Lab

Preview with #A166EB

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

Preview Lab → · Contrast checker → · Palette generator →

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