#8D2198#8D2198

#8D2198 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.195 H 323.9°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#8D2198
RGBrgb(141, 33, 152)
HSLhsl(294, 64%, 36%)
HSVhsv(294, 78%, 60%)
CMYKcmyk(7.2%, 78.3%, 0%, 40.4%)
CIE-LABlab(36.02, 58.56, -41.22)
CIE-LCHlch(36.02, 71.62, 324.86°)
OKLaboklab(47.42% 0.1576 -0.1151)
OKLCHoklch(47.42% 0.195 323.9)
XYZxyz(17.1954, 9.0185, 30.5347)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D2198 #2C9821
analogous
#522198 #8D2198 #982168
triadic
#8D2198 #988D21 #21988D
tetradic
#8D2198 #985221 #2C9821 #216898
square
#8D2198 #985221 #2C9821 #216898
split-complementary
#8D2198 #689821 #219852
monochromatic
#300B33 #5E1666 #8D2198 #BC2CCA #CF59DB

Accessibility & contrast

On white

7.49
#8D2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8D2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D2198
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D2198#FFFFFF#000000##FFFFFF
##8D21981.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#385995
Tritanopia (blue-blind)
#90385C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d2198;
/* rgb */ color: rgb(141, 33, 152);
/* oklch */ color: oklch(47.4% 0.195 323.9);
Tailwind
colors: {
  custom: {
    50: '#b26ab7',
    500: '#8d2198',
    950: '#000000',
  },
}
SCSS
$custom: #8d2198;
$custom-light: #b26ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d2198",
  "rgb": {
    "r": 141,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 294.454,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47424,
    "c": 0.19513,
    "h": 323.9
  },
  "luminance": 0.09017
}

Semantic roles & 50–950 ramp

primary
#8D2198
secondary
#60BF56
accent
#E74050
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D2198

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

Preview Lab → · Contrast checker → · Palette generator →

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