#8D3198#8D3198

#8D3198 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.177 H 323.3°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#8D3198
RGBrgb(141, 49, 152)
HSLhsl(294, 51%, 39%)
HSVhsv(294, 68%, 60%)
CMYKcmyk(7.2%, 67.8%, 0%, 40.4%)
CIE-LABlab(38.07, 52.73, -37.95)
CIE-LCHlch(38.07, 64.97, 324.26°)
OKLaboklab(48.89% 0.1416 -0.1057)
OKLCHoklch(48.89% 0.177 323.3)
XYZxyz(17.7498, 10.1274, 30.7195)
Luminance0.1013 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D3198 #3C9831
analogous
#5A3198 #8D3198 #983170
triadic
#8D3198 #988D31 #31988D
tetradic
#8D3198 #985A31 #3C9831 #317098
square
#8D3198 #985A31 #3C9831 #317098
split-complementary
#8D3198 #709831 #31985A
monochromatic
#37133B #62226A #8D3198 #B544C3 #C772D2

Accessibility & contrast

On white

6.94
#8D3198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8D3198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D3198
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D3198#FFFFFF#000000##FFFFFF
##8D31981.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17539B
Deuteranopia (green-blind)
#415D95
Tritanopia (blue-blind)
#8F4260
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8d3198;
/* rgb */ color: rgb(141, 49, 152);
/* oklch */ color: oklch(48.9% 0.177 323.3);
Tailwind
colors: {
  custom: {
    50: '#b171b7',
    500: '#8d3198',
    950: '#000000',
  },
}
SCSS
$custom: #8d3198;
$custom-light: #b171b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d3198",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 293.592,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48889,
    "c": 0.1767,
    "h": 323.3
  },
  "luminance": 0.10126
}

Semantic roles & 50–950 ramp

primary
#8D3198
secondary
#74B96B
accent
#DB4D5C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8D3198

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

Preview Lab → · Contrast checker → · Palette generator →

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