#8C198E#8C198E

#8C198E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.1% C 0.194 H 327.4°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8C198E
RGBrgb(140, 25, 142)
HSLhsl(299, 70%, 33%)
HSVhsv(299, 82%, 56%)
CMYKcmyk(1.4%, 82.4%, 0%, 44.3%)
CIE-LABlab(34.45, 58.89, -37.62)
CIE-LCHlch(34.45, 69.88, 327.43°)
OKLaboklab(46.08% 0.1634 -0.1046)
OKLCHoklch(46.08% 0.194 327.4)
XYZxyz(16.0451, 8.2249, 26.3284)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C198E #1B8E19
analogous
#51198E #8C198E #8E1956
triadic
#8C198E #8E8C19 #198E8C
tetradic
#8C198E #8E5119 #1B8E19 #19568E
square
#8C198E #8E5119 #1B8E19 #19568E
split-complementary
#8C198E #568E19 #198E51
monochromatic
#250726 #59105A #8C198E #BF22C2 #DB43DE

Accessibility & contrast

On white

7.94
#8C198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8C198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C198E
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C198E#FFFFFF#000000##FFFFFF
##8C198E1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#3B568B
Tritanopia (blue-blind)
#902F55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c198e;
/* rgb */ color: rgb(140, 25, 142);
/* oklch */ color: oklch(46.1% 0.194 327.4);
Tailwind
colors: {
  custom: {
    50: '#b166af',
    500: '#8c198e',
    950: '#000000',
  },
}
SCSS
$custom: #8c198e;
$custom-light: #b166af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c198e",
  "rgb": {
    "r": 140,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 298.974,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.46076,
    "c": 0.194,
    "h": 327.4
  },
  "luminance": 0.08224
}

Semantic roles & 50–950 ramp

primary
#8C198E
secondary
#46BF44
accent
#ED3B3E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C198E

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

Preview Lab → · Contrast checker → · Palette generator →

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