#A166B2#A166B2

#A166B2 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 60.3% C 0.129 H 318.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#A166B2
RGBrgb(161, 102, 178)
HSLhsl(287, 33%, 55%)
HSVhsv(287, 43%, 70%)
CMYKcmyk(9.6%, 42.7%, 0%, 30.2%)
CIE-LABlab(52.17, 36.80, -30.98)
CIE-LCHlch(52.17, 48.11, 319.91°)
OKLaboklab(60.27% 0.0963 -0.0854)
OKLCHoklch(60.27% 0.129 318.4)
XYZxyz(27.4841, 20.2950, 44.5804)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166B2 #77B266
analogous
#7B66B2 #A166B2 #B2669D
triadic
#A166B2 #B2A166 #66B2A1
tetradic
#A166B2 #B27B66 #77B266 #669DB2
square
#A166B2 #B27B66 #77B266 #669DB2
split-complementary
#A166B2 #9DB266 #66B27B
monochromatic
#5D3569 #814992 #A166B2 #BA8FC6 #D3B7DB

Accessibility & contrast

On white

4.15
#A166B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#A166B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166B2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166B2#FFFFFF#000000##000000
##A166B21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A78B5
Deuteranopia (green-blind)
#6A7EB0
Tritanopia (blue-blind)
#A17083
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #a166b2;
/* rgb */ color: rgb(161, 102, 178);
/* oklch */ color: oklch(60.3% 0.129 318.4);
Tailwind
colors: {
  custom: {
    50: '#be93c9',
    500: '#a166b2',
    950: '#000000',
  },
}
SCSS
$custom: #a166b2;
$custom-light: #be93c9;
$custom-dark: #000000;
JSON
{
  "hex": "#a166b2",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 286.579,
    "s": 33.043,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60265,
    "c": 0.12869,
    "h": 318.4
  },
  "luminance": 0.20294
}

Semantic roles & 50–950 ramp

primary
#A166B2
secondary
#B1CAAA
accent
#C95F76
background
#FBF9FC
surface
#F7F1F8
border
#D0CBD1
text
#120D13
muted
#817E82

Preview Lab

Preview with #A166B2

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

Preview Lab → · Contrast checker → · Palette generator →

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