#8A3199#8A3199

#8A3199 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.5% C 0.176 H 321.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A3199
RGBrgb(138, 49, 153)
HSLhsl(291, 51%, 40%)
HSVhsv(291, 68%, 60%)
CMYKcmyk(9.8%, 68%, 0%, 40%)
CIE-LABlab(37.66, 52.21, -39.23)
CIE-LCHlch(37.66, 65.31, 323.08°)
OKLaboklab(48.52% 0.138 -0.1095)
OKLCHoklch(48.52% 0.176 321.6)
XYZxyz(17.3287, 9.9007, 31.1291)
Luminance0.0990 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3199 #409931
analogous
#563199 #8A3199 #993174
triadic
#8A3199 #998A31 #31998A
tetradic
#8A3199 #995631 #409931 #317499
square
#8A3199 #995631 #409931 #317499
split-complementary
#8A3199 #749931 #319956
monochromatic
#36133C #60226B #8A3199 #B144C3 #C472D2

Accessibility & contrast

On white

7.05
#8A3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3199
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3199#FFFFFF#000000##FFFFFF
##8A31991.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11529C
Deuteranopia (green-blind)
#3D5C96
Tritanopia (blue-blind)
#8B4361
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3199;
/* rgb */ color: rgb(138, 49, 153);
/* oklch */ color: oklch(48.5% 0.176 321.6);
Tailwind
colors: {
  custom: {
    50: '#af70b7',
    500: '#8a3199',
    950: '#000000',
  },
}
SCSS
$custom: #8a3199;
$custom-light: #af70b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3199",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 291.346,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48522,
    "c": 0.17616,
    "h": 321.6
  },
  "luminance": 0.099
}

Semantic roles & 50–950 ramp

primary
#8A3199
secondary
#77BA6C
accent
#DB4D61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3199

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

Preview Lab → · Contrast checker → · Palette generator →

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