#A166B3#A166B3

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

Color values

HEX#A166B3
RGBrgb(161, 102, 179)
HSLhsl(286, 34%, 55%)
HSVhsv(286, 43%, 70%)
CMYKcmyk(10.1%, 43%, 0%, 29.8%)
CIE-LABlab(52.21, 37.01, -31.49)
CIE-LCHlch(52.21, 48.59, 319.61°)
OKLaboklab(60.31% 0.0965 -0.0868)
OKLCHoklch(60.31% 0.13 318)
XYZxyz(27.5849, 20.3353, 45.1111)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166B3 #78B366
analogous
#7B66B3 #A166B3 #B3669E
triadic
#A166B3 #B3A166 #66B3A1
tetradic
#A166B3 #B37B66 #78B366 #669EB3
square
#A166B3 #B37B66 #78B366 #669EB3
split-complementary
#A166B3 #9EB366 #66B37B
monochromatic
#5D356A #824993 #A166B3 #BA8FC7 #D3B8DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A166B3#FFFFFF#000000##000000
##A166B31.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)
#5A79B6
Deuteranopia (green-blind)
#697FB1
Tritanopia (blue-blind)
#A17084
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a166b3;
/* rgb */ color: rgb(161, 102, 179);
/* oklch */ color: oklch(60.3% 0.130 318.0);
Tailwind
colors: {
  custom: {
    50: '#be93ca',
    500: '#a166b3',
    950: '#000000',
  },
}
SCSS
$custom: #a166b3;
$custom-light: #be93ca;
$custom-dark: #000000;
JSON
{
  "hex": "#a166b3",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 179
  },
  "hsl": {
    "h": 285.974,
    "s": 33.624,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60313,
    "c": 0.12981,
    "h": 318
  },
  "luminance": 0.20334
}

Semantic roles & 50–950 ramp

primary
#A166B3
secondary
#B2CBAA
accent
#CA5E77
background
#FBF9FC
surface
#F7F1F8
border
#D0CBD1
text
#120D13
muted
#817E82

Preview Lab

Preview with #A166B3

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

Preview Lab → · Contrast checker → · Palette generator →

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