#A166B4#A166B4

#A166B4 is a mid, vivid purple. Relative luminance 0.204; OKLCH L 60.4% C 0.131 H 317.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A166B4
RGBrgb(161, 102, 180)
HSLhsl(285, 34%, 55%)
HSVhsv(285, 43%, 71%)
CMYKcmyk(10.6%, 43.3%, 0%, 29.4%)
CIE-LABlab(52.26, 37.22, -32.00)
CIE-LCHlch(52.26, 49.08, 319.32°)
OKLaboklab(60.36% 0.0967 -0.0883)
OKLCHoklch(60.36% 0.131 317.6)
XYZxyz(27.6864, 20.3759, 45.6457)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166B4 #79B466
analogous
#7A66B4 #A166B4 #B466A0
triadic
#A166B4 #B4A166 #66B4A1
tetradic
#A166B4 #B47A66 #79B466 #66A0B4
square
#A166B4 #B47A66 #79B466 #66A0B4
split-complementary
#A166B4 #A0B466 #66B47A
monochromatic
#5E346B #824994 #A166B4 #BA8FC8 #D3B8DC

Accessibility & contrast

On white

4.14
#A166B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#A166B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166B4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166B4#FFFFFF#000000##000000
##A166B41.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5979B7
Deuteranopia (green-blind)
#697FB2
Tritanopia (blue-blind)
#A17084
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a166b4;
/* rgb */ color: rgb(161, 102, 180);
/* oklch */ color: oklch(60.4% 0.131 317.6);
Tailwind
colors: {
  custom: {
    50: '#be93ca',
    500: '#a166b4',
    950: '#000000',
  },
}
SCSS
$custom: #a166b4;
$custom-light: #be93ca;
$custom-dark: #000000;
JSON
{
  "hex": "#a166b4",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 180
  },
  "hsl": {
    "h": 285.385,
    "s": 34.211,
    "l": 55.294
  },
  "oklch": {
    "l": 0.60362,
    "c": 0.13093,
    "h": 317.6
  },
  "luminance": 0.20375
}

Semantic roles & 50–950 ramp

primary
#A166B4
secondary
#B3CBAB
accent
#CA5E78
background
#FBF9FC
surface
#F7F1F8
border
#D0CBD1
text
#120D13
muted
#817E82

Preview Lab

Preview with #A166B4

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

Preview Lab → · Contrast checker → · Palette generator →

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