#8A3196#8A3196

#8A3196 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.3% C 0.173 H 322.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#8A3196
RGBrgb(138, 49, 150)
HSLhsl(293, 51%, 39%)
HSVhsv(293, 67%, 59%)
CMYKcmyk(8%, 67.3%, 0%, 41.2%)
CIE-LABlab(37.49, 51.63, -37.69)
CIE-LCHlch(37.49, 63.93, 323.87°)
OKLaboklab(48.34% 0.138 -0.105)
OKLCHoklch(48.34% 0.173 322.7)
XYZxyz(17.0840, 9.8029, 29.8405)
Luminance0.0980 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3196 #3D9631
analogous
#583196 #8A3196 #963170
triadic
#8A3196 #968A31 #31968A
tetradic
#8A3196 #965831 #3D9631 #317096
square
#8A3196 #965831 #3D9631 #317096
split-complementary
#8A3196 #709631 #319658
monochromatic
#35133A #602268 #8A3196 #B243C1 #C571D1

Accessibility & contrast

On white

7.09
#8A3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3196
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3196#FFFFFF#000000##FFFFFF
##8A31961.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175299
Deuteranopia (green-blind)
#3F5C93
Tritanopia (blue-blind)
#8C425F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3196;
/* rgb */ color: rgb(138, 49, 150);
/* oklch */ color: oklch(48.3% 0.173 322.7);
Tailwind
colors: {
  custom: {
    50: '#af70b5',
    500: '#8a3196',
    950: '#000000',
  },
}
SCSS
$custom: #8a3196;
$custom-light: #af70b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3196",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 292.871,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48338,
    "c": 0.17342,
    "h": 322.7
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#8A3196
secondary
#74B86A
accent
#DA4E5E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3196

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

Preview Lab → · Contrast checker → · Palette generator →

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