#8B2197#8B2197

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

Color values

HEX#8B2197
RGBrgb(139, 33, 151)
HSLhsl(294, 64%, 36%)
HSVhsv(294, 78%, 59%)
CMYKcmyk(7.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(35.62, 57.97, -41.27)
CIE-LCHlch(35.62, 71.16, 324.55°)
OKLaboklab(47.06% 0.1553 -0.1153)
OKLCHoklch(47.06% 0.193 323.4)
XYZxyz(16.7767, 8.8121, 30.0894)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2197 #2D9721
analogous
#502197 #8B2197 #972168
triadic
#8B2197 #978B21 #21978B
tetradic
#8B2197 #975021 #2D9721 #216897
square
#8B2197 #975021 #2D9721 #216897
split-complementary
#8B2197 #689721 #219750
monochromatic
#2F0B33 #5D1665 #8B2197 #B92CC9 #CD58DA

Accessibility & contrast

On white

7.60
#8B2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8B2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2197
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2197#FFFFFF#000000##FFFFFF
##8B21971.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#365894
Tritanopia (blue-blind)
#8D385B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2197;
/* rgb */ color: rgb(139, 33, 151);
/* oklch */ color: oklch(47.1% 0.193 323.4);
Tailwind
colors: {
  custom: {
    50: '#b169b6',
    500: '#8b2197',
    950: '#000000',
  },
}
SCSS
$custom: #8b2197;
$custom-light: #b169b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2197",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 293.898,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47055,
    "c": 0.19345,
    "h": 323.4
  },
  "luminance": 0.08811
}

Semantic roles & 50–950 ramp

primary
#8B2197
secondary
#60BE55
accent
#E74152
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2197

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

Preview Lab → · Contrast checker → · Palette generator →

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