#8C198C#8C198C

#8C198C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.192 H 328.2°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8C198C
RGBrgb(140, 25, 140)
HSLhsl(300, 70%, 32%)
HSVhsv(300, 82%, 55%)
CMYKcmyk(0%, 82.1%, 0%, 45.1%)
CIE-LABlab(34.33, 58.56, -36.58)
CIE-LCHlch(34.33, 69.05, 328.01°)
OKLaboklab(45.95% 0.1635 -0.1015)
OKLCHoklch(45.95% 0.192 328.2)
XYZxyz(15.8963, 8.1654, 25.5447)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C198C #198C19
analogous
#53198C #8C198C #8C1953
triadic
#8C198C #8C8C19 #198C8C
tetradic
#8C198C #8C5319 #198C19 #19538C
square
#8C198C #8C5319 #198C19 #19538C
split-complementary
#8C198C #538C19 #198C53
monochromatic
#240624 #581058 #8C198C #C022C0 #DD42DD

Accessibility & contrast

On white

7.98
#8C198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8C198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C198C
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C198C#FFFFFF#000000##FFFFFF
##8C198C1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#3C5689
Tritanopia (blue-blind)
#912E54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c198c;
/* rgb */ color: rgb(140, 25, 140);
/* oklch */ color: oklch(46.0% 0.192 328.2);
Tailwind
colors: {
  custom: {
    50: '#b166ae',
    500: '#8c198c',
    950: '#000000',
  },
}
SCSS
$custom: #8c198c;
$custom-light: #b166ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8c198c",
  "rgb": {
    "r": 140,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 300,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45951,
    "c": 0.19248,
    "h": 328.2
  },
  "luminance": 0.08164
}

Semantic roles & 50–950 ramp

primary
#8C198C
secondary
#43BE43
accent
#ED3B3B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C198C

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

Preview Lab → · Contrast checker → · Palette generator →

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