#A166B5#A166B5

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

Color values

HEX#A166B5
RGBrgb(161, 102, 181)
HSLhsl(285, 35%, 55%)
HSVhsv(285, 44%, 71%)
CMYKcmyk(11%, 43.6%, 0%, 29%)
CIE-LABlab(52.31, 37.43, -32.50)
CIE-LCHlch(52.31, 49.58, 319.03°)
OKLaboklab(60.41% 0.0969 -0.0898)
OKLCHoklch(60.41% 0.132 317.2)
XYZxyz(27.7886, 20.4168, 46.1841)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166B5 #7AB566
analogous
#7966B5 #A166B5 #B566A1
triadic
#A166B5 #B5A166 #66B5A1
tetradic
#A166B5 #B57966 #7AB566 #66A1B5
square
#A166B5 #B57966 #7AB566 #66A1B5
split-complementary
#A166B5 #A1B566 #66B579
monochromatic
#5E346C #824895 #A166B5 #BA8FC9 #D4B8DD

Accessibility & contrast

On white

4.13
#A166B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#A166B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166B5
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166B5#FFFFFF#000000##000000
##A166B51.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5979B8
Deuteranopia (green-blind)
#697FB3
Tritanopia (blue-blind)
#A17185
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a166b5;
/* rgb */ color: rgb(161, 102, 181);
/* oklch */ color: oklch(60.4% 0.132 317.2);
Tailwind
colors: {
  custom: {
    50: '#be93cb',
    500: '#a166b5',
    950: '#000000',
  },
}
SCSS
$custom: #a166b5;
$custom-light: #be93cb;
$custom-dark: #000000;
JSON
{
  "hex": "#a166b5",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 181
  },
  "hsl": {
    "h": 284.81,
    "s": 34.802,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60411,
    "c": 0.13206,
    "h": 317.2
  },
  "luminance": 0.20416
}

Semantic roles & 50–950 ramp

primary
#A166B5
secondary
#B3CCAB
accent
#CB5D79
background
#FBF9FC
surface
#F7F1F8
border
#D0CBD1
text
#120D13
muted
#817E82

Preview Lab

Preview with #A166B5

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

Preview Lab → · Contrast checker → · Palette generator →

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