#8173BA#8173BA

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

Color values

HEX#8173BA
RGBrgb(129, 115, 186)
HSLhsl(252, 34%, 59%)
HSVhsv(252, 38%, 73%)
CMYKcmyk(30.6%, 38.2%, 0%, 27.1%)
CIE-LABlab(52.37, 21.54, -35.52)
CIE-LCHlch(52.37, 41.54, 301.23°)
OKLaboklab(59.78% 0.0399 -0.0992)
OKLCHoklch(59.78% 0.107 291.9)
XYZxyz(24.0447, 20.4733, 49.1298)
Luminance0.2047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8173BA #ACBA73
analogous
#7389BA #8173BA #A573BA
triadic
#8173BA #BA8173 #73BA81
tetradic
#8173BA #BA7389 #ACBA73 #73BAA5
square
#8173BA #BA7389 #ACBA73 #73BAA5
split-complementary
#8173BA #BAA573 #89BA73
monochromatic
#473B78 #5F4FA1 #8173BA #A69CCE #CBC5E2

Accessibility & contrast

On white

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

On black

5.09
#8173BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8173BA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8173BA#FFFFFF#000000##000000
##8173BA1.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7EBD
Deuteranopia (green-blind)
#607CB8
Tritanopia (blue-blind)
#74808E
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8173ba;
/* rgb */ color: rgb(129, 115, 186);
/* oklch */ color: oklch(59.8% 0.107 291.9);
Tailwind
colors: {
  custom: {
    50: '#a79bcf',
    500: '#8173ba',
    950: '#000000',
  },
}
SCSS
$custom: #8173ba;
$custom-light: #a79bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8173ba",
  "rgb": {
    "r": 129,
    "g": 115,
    "b": 186
  },
  "hsl": {
    "h": 251.831,
    "s": 33.971,
    "l": 59.02
  },
  "oklch": {
    "l": 0.59783,
    "c": 0.10694,
    "h": 291.9
  },
  "luminance": 0.20474
}

Semantic roles & 50–950 ramp

primary
#8173BA
secondary
#CDD2B6
accent
#CA5EB5
background
#FAF9FC
surface
#F4F2F9
border
#CECCD2
text
#100E14
muted
#7F7E82

Preview Lab

Preview with #8173BA

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

Preview Lab → · Contrast checker → · Palette generator →

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