#8A3197#8A3197

#8A3197 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.4% C 0.174 H 322.3°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8A3197
RGBrgb(138, 49, 151)
HSLhsl(292, 51%, 39%)
HSVhsv(292, 68%, 59%)
CMYKcmyk(8.6%, 67.5%, 0%, 40.8%)
CIE-LABlab(37.55, 51.82, -38.21)
CIE-LCHlch(37.55, 64.39, 323.60°)
OKLaboklab(48.4% 0.138 -0.1065)
OKLCHoklch(48.4% 0.174 322.3)
XYZxyz(17.1649, 9.8352, 30.2664)
Luminance0.0983 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3197 #3E9731
analogous
#573197 #8A3197 #973171
triadic
#8A3197 #978A31 #31978A
tetradic
#8A3197 #975731 #3E9731 #317197
square
#8A3197 #975731 #3E9731 #317197
split-complementary
#8A3197 #719731 #319757
monochromatic
#36133B #602269 #8A3197 #B243C2 #C571D1

Accessibility & contrast

On white

7.08
#8A3197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A3197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3197
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3197#FFFFFF#000000##FFFFFF
##8A31971.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15529A
Deuteranopia (green-blind)
#3F5C94
Tritanopia (blue-blind)
#8C4260
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3197;
/* rgb */ color: rgb(138, 49, 151);
/* oklch */ color: oklch(48.4% 0.174 322.3);
Tailwind
colors: {
  custom: {
    50: '#af70b6',
    500: '#8a3197',
    950: '#000000',
  },
}
SCSS
$custom: #8a3197;
$custom-light: #af70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3197",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 151
  },
  "hsl": {
    "h": 292.353,
    "s": 51,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48399,
    "c": 0.17433,
    "h": 322.3
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#8A3197
secondary
#75B96B
accent
#DA4D5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3197

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

Preview Lab → · Contrast checker → · Palette generator →

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