#A166BA#A166BA

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

Color values

HEX#A166BA
RGBrgb(161, 102, 186)
HSLhsl(282, 38%, 56%)
HSVhsv(282, 45%, 73%)
CMYKcmyk(13.4%, 45.2%, 0%, 27.1%)
CIE-LABlab(52.54, 38.50, -35.03)
CIE-LCHlch(52.54, 52.05, 317.70°)
OKLaboklab(60.66% 0.0977 -0.097)
OKLCHoklch(60.66% 0.138 315.2)
XYZxyz(28.3109, 20.6257, 48.9347)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166BA #7FBA66
analogous
#7766BA #A166BA #BA66A9
triadic
#A166BA #BAA166 #66BAA1
tetradic
#A166BA #BA7766 #7FBA66 #66A9BA
square
#A166BA #BA7766 #7FBA66 #66A9BA
split-complementary
#A166BA #A9BA66 #66BA77
monochromatic
#5F3372 #83469C #A166BA #BB90CD #D5BAE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A166BA#FFFFFF#000000##000000
##A166BA1.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)
#567ABD
Deuteranopia (green-blind)
#667FB8
Tritanopia (blue-blind)
#A07287
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #a166ba;
/* rgb */ color: rgb(161, 102, 186);
/* oklch */ color: oklch(60.7% 0.138 315.2);
Tailwind
colors: {
  custom: {
    50: '#be93cf',
    500: '#a166ba',
    950: '#000000',
  },
}
SCSS
$custom: #a166ba;
$custom-light: #be93cf;
$custom-dark: #000000;
JSON
{
  "hex": "#a166ba",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 186
  },
  "hsl": {
    "h": 282.143,
    "s": 37.838,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60661,
    "c": 0.13772,
    "h": 315.2
  },
  "luminance": 0.20625
}

Semantic roles & 50–950 ramp

primary
#A166BA
secondary
#B7CFAD
accent
#CE5A7C
background
#FBF9FC
surface
#F7F1F9
border
#D0CBD2
text
#120D14
muted
#817E82

Preview Lab

Preview with #A166BA

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

Preview Lab → · Contrast checker → · Palette generator →

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