#8173BB#8173BB

#8173BB is a mid, moderate violet. Relative luminance 0.205; OKLCH L 59.8% C 0.108 H 291.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8173BB
RGBrgb(129, 115, 187)
HSLhsl(252, 35%, 59%)
HSVhsv(252, 39%, 73%)
CMYKcmyk(31%, 38.5%, 0%, 26.7%)
CIE-LABlab(52.42, 21.80, -36.02)
CIE-LCHlch(52.42, 42.11, 301.18°)
OKLaboklab(59.84% 0.0401 -0.1007)
OKLCHoklch(59.84% 0.108 291.7)
XYZxyz(24.1514, 20.5160, 49.6916)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8173BB #ADBB73
analogous
#7389BB #8173BB #A573BB
triadic
#8173BB #BB8173 #73BB81
tetradic
#8173BB #BB7389 #ADBB73 #73BBA5
square
#8173BB #BB7389 #ADBB73 #73BBA5
split-complementary
#8173BB #BBA573 #89BB73
monochromatic
#473B79 #5F4FA2 #8173BB #A69CCF #CBC5E3

Accessibility & contrast

On white

4.12
#8173BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8173BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8173BB#FFFFFF#000000##000000
##8173BB1.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)
#5E7EBE
Deuteranopia (green-blind)
#5F7CB9
Tritanopia (blue-blind)
#74808E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8173bb;
/* rgb */ color: rgb(129, 115, 187);
/* oklch */ color: oklch(59.8% 0.108 291.7);
Tailwind
colors: {
  custom: {
    50: '#a79bd0',
    500: '#8173bb',
    950: '#000000',
  },
}
SCSS
$custom: #8173bb;
$custom-light: #a79bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8173bb",
  "rgb": {
    "r": 129,
    "g": 115,
    "b": 187
  },
  "hsl": {
    "h": 251.667,
    "s": 34.615,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59835,
    "c": 0.10837,
    "h": 291.7
  },
  "luminance": 0.20516
}

Semantic roles & 50–950 ramp

primary
#8173BB
secondary
#CED3B7
accent
#CB5DB5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8173BB

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

Preview Lab → · Contrast checker → · Palette generator →

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