#A166B9#A166B9

#A166B9 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 60.6% C 0.137 H 315.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#A166B9
RGBrgb(161, 102, 185)
HSLhsl(283, 37%, 56%)
HSVhsv(283, 45%, 73%)
CMYKcmyk(13%, 44.9%, 0%, 27.5%)
CIE-LABlab(52.49, 38.28, -34.53)
CIE-LCHlch(52.49, 51.55, 317.96°)
OKLaboklab(60.61% 0.0976 -0.0956)
OKLCHoklch(60.61% 0.137 315.6)
XYZxyz(28.2049, 20.5833, 48.3767)
Luminance0.2058 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166B9 #7EB966
analogous
#7866B9 #A166B9 #B966A8
triadic
#A166B9 #B9A166 #66B9A1
tetradic
#A166B9 #B97866 #7EB966 #66A8B9
square
#A166B9 #B97866 #7EB966 #66A8B9
split-complementary
#A166B9 #A8B966 #66B978
monochromatic
#5F3471 #83479B #A166B9 #BB90CC #D5BADF

Accessibility & contrast

On white

4.10
#A166B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#A166B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166B9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166B9#FFFFFF#000000##000000
##A166B91.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#577ABC
Deuteranopia (green-blind)
#677FB7
Tritanopia (blue-blind)
#A07287
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a166b9;
/* rgb */ color: rgb(161, 102, 185);
/* oklch */ color: oklch(60.6% 0.137 315.6);
Tailwind
colors: {
  custom: {
    50: '#be93ce',
    500: '#a166b9',
    950: '#000000',
  },
}
SCSS
$custom: #a166b9;
$custom-light: #be93ce;
$custom-dark: #000000;
JSON
{
  "hex": "#a166b9",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 185
  },
  "hsl": {
    "h": 282.651,
    "s": 37.22,
    "l": 56.275
  },
  "oklch": {
    "l": 0.6061,
    "c": 0.13658,
    "h": 315.6
  },
  "luminance": 0.20583
}

Semantic roles & 50–950 ramp

primary
#A166B9
secondary
#B6CEAC
accent
#CD5B7C
background
#FBF9FC
surface
#F7F1F9
border
#D0CBD2
text
#120D13
muted
#817E82

Preview Lab

Preview with #A166B9

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

Preview Lab → · Contrast checker → · Palette generator →

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