#8173B7#8173B7

#8173B7 is a mid, moderate violet. Relative luminance 0.203; OKLCH L 59.6% C 0.103 H 292.5°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8173B7
RGBrgb(129, 115, 183)
HSLhsl(252, 32%, 58%)
HSVhsv(252, 37%, 72%)
CMYKcmyk(29.5%, 37.2%, 0%, 28.2%)
CIE-LABlab(52.23, 20.75, -34.02)
CIE-LCHlch(52.23, 39.85, 301.39°)
OKLaboklab(59.63% 0.0392 -0.0949)
OKLCHoklch(59.63% 0.103 292.5)
XYZxyz(23.7291, 20.3471, 47.4678)
Luminance0.2035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8173B7 #A9B773
analogous
#7387B7 #8173B7 #A373B7
triadic
#8173B7 #B78173 #73B781
tetradic
#8173B7 #B77387 #A9B773 #73B7A3
square
#8173B7 #B77387 #A9B773 #73B7A3
split-complementary
#8173B7 #B7A373 #87B773
monochromatic
#473C74 #60509C #8173B7 #A59BCC #CAC4E1

Accessibility & contrast

On white

4.14
#8173B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8173B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8173B7#FFFFFF#000000##000000
##8173B71.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)
#607EBA
Deuteranopia (green-blind)
#617BB5
Tritanopia (blue-blind)
#757F8C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8173b7;
/* rgb */ color: rgb(129, 115, 183);
/* oklch */ color: oklch(59.6% 0.103 292.5);
Tailwind
colors: {
  custom: {
    50: '#a79bcd',
    500: '#8173b7',
    950: '#000000',
  },
}
SCSS
$custom: #8173b7;
$custom-light: #a79bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8173b7",
  "rgb": {
    "r": 129,
    "g": 115,
    "b": 183
  },
  "hsl": {
    "h": 252.353,
    "s": 32.075,
    "l": 58.431
  },
  "oklch": {
    "l": 0.59629,
    "c": 0.10265,
    "h": 292.5
  },
  "luminance": 0.20347
}

Semantic roles & 50–950 ramp

primary
#8173B7
secondary
#CBD0B5
accent
#C860B3
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8173B7

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

Preview Lab → · Contrast checker → · Palette generator →

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