#8A3799#8A3799

#8A3799 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.2% C 0.168 H 321.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#8A3799
RGBrgb(138, 55, 153)
HSLhsl(291, 47%, 41%)
HSVhsv(291, 64%, 60%)
CMYKcmyk(9.8%, 64.1%, 0%, 40%)
CIE-LABlab(38.61, 49.56, -37.72)
CIE-LCHlch(38.61, 62.28, 322.73°)
OKLaboklab(49.21% 0.1309 -0.1051)
OKLCHoklch(49.21% 0.168 321.2)
XYZxyz(17.5965, 10.4364, 31.2184)
Luminance0.1044 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3799 #469937
analogous
#593799 #8A3799 #993777
triadic
#8A3799 #998A37 #37998A
tetradic
#8A3799 #995937 #469937 #377799
square
#8A3799 #995937 #469937 #377799
split-complementary
#8A3799 #779937 #379959
monochromatic
#39173F #61276C #8A3799 #AE4EBF #C37BD0

Accessibility & contrast

On white

6.80
#8A3799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A3799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3799
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3799#FFFFFF#000000##FFFFFF
##8A37991.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F559C
Deuteranopia (green-blind)
#415E97
Tritanopia (blue-blind)
#8B4763
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3799;
/* rgb */ color: rgb(138, 55, 153);
/* oklch */ color: oklch(49.2% 0.168 321.2);
Tailwind
colors: {
  custom: {
    50: '#af74b7',
    500: '#8a3799',
    950: '#000000',
  },
}
SCSS
$custom: #8a3799;
$custom-light: #af74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3799",
  "rgb": {
    "r": 138,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 290.816,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49209,
    "c": 0.16786,
    "h": 321.2
  },
  "luminance": 0.10436
}

Semantic roles & 50–950 ramp

primary
#8A3799
secondary
#7EB973
accent
#D75166
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3799

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

Preview Lab → · Contrast checker → · Palette generator →

#8A3799 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva