#8B2198#8B2198

#8B2198 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.1% C 0.194 H 323.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#8B2198
RGBrgb(139, 33, 152)
HSLhsl(293, 64%, 36%)
HSVhsv(293, 78%, 60%)
CMYKcmyk(8.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(35.68, 58.15, -41.78)
CIE-LCHlch(35.68, 71.61, 324.31°)
OKLaboklab(47.12% 0.1553 -0.1168)
OKLCHoklch(47.12% 0.194 323.1)
XYZxyz(16.8583, 8.8447, 30.5189)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2198 #2E9821
analogous
#502198 #8B2198 #98216A
triadic
#8B2198 #988B21 #21988B
tetradic
#8B2198 #985021 #2E9821 #216A98
square
#8B2198 #985021 #2E9821 #216A98
split-complementary
#8B2198 #6A9821 #219850
monochromatic
#2F0B33 #5D1666 #8B2198 #B92CCA #CD59DB

Accessibility & contrast

On white

7.58
#8B2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8B2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2198
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2198#FFFFFF#000000##FFFFFF
##8B21981.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#365895
Tritanopia (blue-blind)
#8D395C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2198;
/* rgb */ color: rgb(139, 33, 152);
/* oklch */ color: oklch(47.1% 0.194 323.1);
Tailwind
colors: {
  custom: {
    50: '#b169b7',
    500: '#8b2198',
    950: '#000000',
  },
}
SCSS
$custom: #8b2198;
$custom-light: #b169b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2198",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 293.445,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4712,
    "c": 0.19427,
    "h": 323.1
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#8B2198
secondary
#61BF56
accent
#E74053
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2198

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

Preview Lab → · Contrast checker → · Palette generator →

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