#A166D7#A166D7

#A166D7 is a light, vivid violet. Relative luminance 0.220; OKLCH L 62.2% C 0.171 H 306.2°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#A166D7
RGBrgb(161, 102, 215)
HSLhsl(271, 59%, 62%)
HSVhsv(271, 53%, 84%)
CMYKcmyk(25.1%, 52.6%, 0%, 15.7%)
CIE-LABlab(54.01, 45.01, -49.27)
CIE-LCHlch(54.01, 66.74, 312.41°)
OKLaboklab(62.24% 0.1011 -0.1384)
OKLCHoklch(62.24% 0.171 306.2)
XYZxyz(31.7125, 21.9864, 66.8499)
Luminance0.2199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A166D7 #9CD766
analogous
#6866D7 #A166D7 #D766D5
triadic
#A166D7 #D7A166 #66D7A1
tetradic
#A166D7 #D76866 #9CD766 #66D5D7
square
#A166D7 #D76866 #9CD766 #66D5D7
split-complementary
#A166D7 #D5D766 #66D768
monochromatic
#64289A #8335CA #A166D7 #BF97E4 #DDC7F0

Accessibility & contrast

On white

3.89
#A166D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#A166D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A166D7
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A166D7#FFFFFF#000000##000000
##A166D71.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#427FDB
Deuteranopia (green-blind)
#5582D4
Tritanopia (blue-blind)
#987A95
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #a166d7;
/* rgb */ color: rgb(161, 102, 215);
/* oklch */ color: oklch(62.2% 0.171 306.2);
Tailwind
colors: {
  custom: {
    50: '#bf93e4',
    500: '#a166d7',
    950: '#000000',
  },
}
SCSS
$custom: #a166d7;
$custom-light: #bf93e4;
$custom-dark: #000000;
JSON
{
  "hex": "#a166d7",
  "rgb": {
    "r": 161,
    "g": 102,
    "b": 215
  },
  "hsl": {
    "h": 271.327,
    "s": 58.549,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62237,
    "c": 0.17145,
    "h": 306.2
  },
  "luminance": 0.21986
}

Semantic roles & 50–950 ramp

primary
#A166D7
secondary
#CBE1B8
accent
#C61F6F
background
#FCF9FE
surface
#F8F1FC
border
#D1CBD5
text
#120D15
muted
#817E84

Preview Lab

Preview with #A166D7

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

Preview Lab → · Contrast checker → · Palette generator →

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