#A166C2#A166C2

#A166C2 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.1% C 0.147 H 312.3°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#A166C2
RGBrgb(161, 102, 194)
HSLhsl(278, 43%, 58%)
HSVhsv(278, 47%, 76%)
CMYKcmyk(17%, 47.4%, 0%, 23.9%)
CIE-LABlab(52.92, 40.24, -39.03)
CIE-LCHlch(52.92, 56.06, 315.88°)
OKLaboklab(61.07% 0.099 -0.1086)
OKLCHoklch(61.07% 0.147 312.3)
XYZxyz(29.1852, 20.9755, 53.5397)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166C2 #87C266
analogous
#7366C2 #A166C2 #C266B5
triadic
#A166C2 #C2A166 #66C2A1
tetradic
#A166C2 #C27366 #87C266 #66B5C2
square
#A166C2 #C27366 #87C266 #66B5C2
split-complementary
#A166C2 #B5C266 #66C273
monochromatic
#61317C #8443A8 #A166C2 #BC92D3 #D7BEE5

Accessibility & contrast

On white

4.04
#A166C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#A166C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166C2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166C2#FFFFFF#000000##000000
##A166C21.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#527BC5
Deuteranopia (green-blind)
#6280C0
Tritanopia (blue-blind)
#9E748B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #a166c2;
/* rgb */ color: rgb(161, 102, 194);
/* oklch */ color: oklch(61.1% 0.147 312.3);
Tailwind
colors: {
  custom: {
    50: '#bf93d5',
    500: '#a166c2',
    950: '#000000',
  },
}
SCSS
$custom: #a166c2;
$custom-light: #bf93d5;
$custom-dark: #000000;
JSON
{
  "hex": "#a166c2",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 194
  },
  "hsl": {
    "h": 278.478,
    "s": 42.991,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61074,
    "c": 0.14692,
    "h": 312.3
  },
  "luminance": 0.20975
}

Semantic roles & 50–950 ramp

primary
#A166C2
secondary
#BDD4B0
accent
#D35582
background
#FBF9FD
surface
#F7F1FA
border
#D0CBD3
text
#120D14
muted
#817E83

Preview Lab

Preview with #A166C2

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

Preview Lab → · Contrast checker → · Palette generator →

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