#A166B7#A166B7

#A166B7 is a mid, vivid purple. Relative luminance 0.205; OKLCH L 60.5% C 0.134 H 316.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A166B7
RGBrgb(161, 102, 183)
HSLhsl(284, 36%, 56%)
HSVhsv(284, 44%, 72%)
CMYKcmyk(12%, 44.3%, 0%, 28.2%)
CIE-LABlab(52.40, 37.86, -33.52)
CIE-LCHlch(52.40, 50.56, 318.48°)
OKLaboklab(60.51% 0.0972 -0.0927)
OKLCHoklch(60.51% 0.134 316.4)
XYZxyz(27.9953, 20.4995, 47.2726)
Luminance0.2050 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166B7 #7CB766
analogous
#7866B7 #A166B7 #B766A4
triadic
#A166B7 #B7A166 #66B7A1
tetradic
#A166B7 #B77866 #7CB766 #66A4B7
square
#A166B7 #B77866 #7CB766 #66A4B7
split-complementary
#A166B7 #A4B766 #66B778
monochromatic
#5F346F #824898 #A166B7 #BB90CB #D4B9DE

Accessibility & contrast

On white

4.12
#A166B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#A166B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166B7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166B7#FFFFFF#000000##000000
##A166B71.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5879BA
Deuteranopia (green-blind)
#687FB5
Tritanopia (blue-blind)
#A07186
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a166b7;
/* rgb */ color: rgb(161, 102, 183);
/* oklch */ color: oklch(60.5% 0.134 316.4);
Tailwind
colors: {
  custom: {
    50: '#be93cd',
    500: '#a166b7',
    950: '#000000',
  },
}
SCSS
$custom: #a166b7;
$custom-light: #be93cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a166b7",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 183
  },
  "hsl": {
    "h": 283.704,
    "s": 36,
    "l": 55.882
  },
  "oklch": {
    "l": 0.6051,
    "c": 0.13431,
    "h": 316.4
  },
  "luminance": 0.20499
}

Semantic roles & 50–950 ramp

primary
#A166B7
secondary
#B5CDAC
accent
#CC5C7A
background
#FBF9FC
surface
#F7F1F9
border
#D0CBD2
text
#120D13
muted
#817E82

Preview Lab

Preview with #A166B7

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

Preview Lab → · Contrast checker → · Palette generator →

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