#A166D2#A166D2

#A166D2 is a mid, vivid violet. Relative luminance 0.217; OKLCH L 62.0% C 0.166 H 307.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#A166D2
RGBrgb(161, 102, 210)
HSLhsl(273, 55%, 61%)
HSVhsv(273, 51%, 82%)
CMYKcmyk(23.3%, 51.4%, 0%, 17.6%)
CIE-LABlab(53.74, 43.85, -46.87)
CIE-LCHlch(53.74, 64.18, 313.10°)
OKLaboklab(61.95% 0.1008 -0.1314)
OKLCHoklch(61.95% 0.166 307.5)
XYZxyz(31.0798, 21.7333, 63.5179)
Luminance0.2173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166D2 #97D266
analogous
#6B66D2 #A166D2 #D266CD
triadic
#A166D2 #D2A166 #66D2A1
tetradic
#A166D2 #D26B66 #97D266 #66CDD2
square
#A166D2 #D26B66 #97D266 #66CDD2
split-complementary
#A166D2 #CDD266 #66D26B
monochromatic
#642B93 #8439C2 #A166D2 #BE95E0 #DBC5EE

Accessibility & contrast

On white

3.93
#A166D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#A166D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166D2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166D2#FFFFFF#000000##000000
##A166D21.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#467ED6
Deuteranopia (green-blind)
#5881CF
Tritanopia (blue-blind)
#9A7992
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #a166d2;
/* rgb */ color: rgb(161, 102, 210);
/* oklch */ color: oklch(62.0% 0.166 307.5);
Tailwind
colors: {
  custom: {
    50: '#bf93e0',
    500: '#a166d2',
    950: '#000000',
  },
}
SCSS
$custom: #a166d2;
$custom-light: #bf93e0;
$custom-dark: #000000;
JSON
{
  "hex": "#a166d2",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 210
  },
  "hsl": {
    "h": 272.778,
    "s": 54.545,
    "l": 61.176
  },
  "oklch": {
    "l": 0.6195,
    "c": 0.16559,
    "h": 307.5
  },
  "luminance": 0.21733
}

Semantic roles & 50–950 ramp

primary
#A166D2
secondary
#C8DEB6
accent
#C2236B
background
#FCF9FD
surface
#F8F1FB
border
#D1CBD4
text
#120D15
muted
#817E83

Preview Lab

Preview with #A166D2

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

Preview Lab → · Contrast checker → · Palette generator →

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