#8C2198#8C2198

#8C2198 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.3% C 0.195 H 323.5°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#8C2198
RGBrgb(140, 33, 152)
HSLhsl(294, 64%, 36%)
HSVhsv(294, 78%, 60%)
CMYKcmyk(7.9%, 78.3%, 0%, 40.4%)
CIE-LABlab(35.85, 58.36, -41.50)
CIE-LCHlch(35.85, 71.61, 324.58°)
OKLaboklab(47.27% 0.1564 -0.1159)
OKLCHoklch(47.27% 0.195 323.5)
XYZxyz(17.0261, 8.9312, 30.5268)
Luminance0.0893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2198 #2D9821
analogous
#512198 #8C2198 #982169
triadic
#8C2198 #988C21 #21988C
tetradic
#8C2198 #985121 #2D9821 #216998
square
#8C2198 #985121 #2D9821 #216998
split-complementary
#8C2198 #699821 #219851
monochromatic
#2F0B33 #5E1666 #8C2198 #BA2CCA #CE59DB

Accessibility & contrast

On white

7.54
#8C2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8C2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2198
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2198#FFFFFF#000000##FFFFFF
##8C21981.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c2198;
/* rgb */ color: rgb(140, 33, 152);
/* oklch */ color: oklch(47.3% 0.195 323.5);
Tailwind
colors: {
  custom: {
    50: '#b16ab7',
    500: '#8c2198',
    950: '#000000',
  },
}
SCSS
$custom: #8c2198;
$custom-light: #b16ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2198",
  "rgb": {
    "r": 140,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 293.95,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47272,
    "c": 0.1947,
    "h": 323.5
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C2198

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

Preview Lab → · Contrast checker → · Palette generator →

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