#8173AB#8173AB

#8173AB is a mid, moderate violet. Relative luminance 0.199; OKLCH L 59.0% C 0.085 H 295.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8173AB
RGBrgb(129, 115, 171)
HSLhsl(255, 25%, 56%)
HSVhsv(255, 33%, 67%)
CMYKcmyk(24.6%, 32.7%, 0%, 32.9%)
CIE-LABlab(51.69, 17.69, -27.92)
CIE-LCHlch(51.69, 33.05, 302.37°)
OKLaboklab(59.04% 0.0363 -0.0773)
OKLCHoklch(59.04% 0.085 295.1)
XYZxyz(22.5330, 19.8686, 41.1681)
Luminance0.1987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8173AB #9DAB73
analogous
#7381AB #8173AB #9D73AB
triadic
#8173AB #AB8173 #73AB81
tetradic
#8173AB #AB7381 #9DAB73 #73AB9D
square
#8173AB #AB7381 #9DAB73 #73AB9D
split-complementary
#8173AB #AB9D73 #81AB73
monochromatic
#483D66 #62548C #8173AB #A399C2 #C6BFD9

Accessibility & contrast

On white

4.22
#8173AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#8173AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8173AB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8173AB#FFFFFF#000000##000000
##8173AB1.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#657CAD
Deuteranopia (green-blind)
#677AA9
Tritanopia (blue-blind)
#797C87
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8173ab;
/* rgb */ color: rgb(129, 115, 171);
/* oklch */ color: oklch(59.0% 0.085 295.1);
Tailwind
colors: {
  custom: {
    50: '#a69bc4',
    500: '#8173ab',
    950: '#000000',
  },
}
SCSS
$custom: #8173ab;
$custom-light: #a69bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8173ab",
  "rgb": {
    "r": 129,
    "g": 115,
    "b": 171
  },
  "hsl": {
    "h": 255,
    "s": 25,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5904,
    "c": 0.0854,
    "h": 295.1
  },
  "luminance": 0.19869
}

Semantic roles & 50–950 ramp

primary
#8173AB
secondary
#C3C8B1
accent
#C166AB
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#0F0E12
muted
#7F7E81

Preview Lab

Preview with #8173AB

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

Preview Lab → · Contrast checker → · Palette generator →

#8173AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva