#8C2197#8C2197

#8C2197 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.194 H 323.8°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8C2197
RGBrgb(140, 33, 151)
HSLhsl(294, 64%, 36%)
HSVhsv(294, 78%, 59%)
CMYKcmyk(7.3%, 78.1%, 0%, 40.8%)
CIE-LABlab(35.79, 58.18, -40.99)
CIE-LCHlch(35.79, 71.17, 324.83°)
OKLaboklab(47.21% 0.1565 -0.1144)
OKLCHoklch(47.21% 0.194 323.8)
XYZxyz(16.9445, 8.8986, 30.0973)
Luminance0.0890 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2197 #2C9721
analogous
#512197 #8C2197 #972167
triadic
#8C2197 #978C21 #21978C
tetradic
#8C2197 #975121 #2C9721 #216797
square
#8C2197 #975121 #2C9721 #216797
split-complementary
#8C2197 #679721 #219751
monochromatic
#2F0B33 #5D1665 #8C2197 #BB2CC9 #CE58DA

Accessibility & contrast

On white

7.56
#8C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8C2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2197
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2197#FFFFFF#000000##FFFFFF
##8C21971.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c2197;
/* rgb */ color: rgb(140, 33, 151);
/* oklch */ color: oklch(47.2% 0.194 323.8);
Tailwind
colors: {
  custom: {
    50: '#b16ab6',
    500: '#8c2197',
    950: '#000000',
  },
}
SCSS
$custom: #8c2197;
$custom-light: #b16ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2197",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 294.407,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47207,
    "c": 0.19388,
    "h": 323.8
  },
  "luminance": 0.08898
}

Semantic roles & 50–950 ramp

primary
#8C2197
secondary
#5FBE55
accent
#E74150
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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