#8C197E#8C197E

#8C197E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.182 H 333.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8C197E
RGBrgb(140, 25, 126)
HSLhsl(307, 70%, 32%)
HSVhsv(307, 82%, 55%)
CMYKcmyk(0%, 82.1%, 10%, 45.1%)
CIE-LABlab(33.52, 56.34, -29.16)
CIE-LCHlch(33.52, 63.44, 332.63°)
OKLaboklab(45.12% 0.1636 -0.08)
OKLCHoklch(45.12% 0.182 333.9)
XYZxyz(14.9289, 7.7784, 20.4497)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C197E #198C27
analogous
#60198C #8C197E #8C1945
triadic
#8C197E #7E8C19 #197E8C
tetradic
#8C197E #8C6019 #198C27 #19458C
square
#8C197E #8C6019 #198C27 #19458C
split-complementary
#8C197E #458C19 #198C60
monochromatic
#240621 #58104F #8C197E #C022AD #DD42CA

Accessibility & contrast

On white

8.22
#8C197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8C197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C197E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C197E#FFFFFF#000000##FFFFFF
##8C197E1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154481
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#93264C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8c197e;
/* rgb */ color: rgb(140, 25, 126);
/* oklch */ color: oklch(45.1% 0.182 333.9);
Tailwind
colors: {
  custom: {
    50: '#b166a4',
    500: '#8c197e',
    950: '#000000',
  },
}
SCSS
$custom: #8c197e;
$custom-light: #b166a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c197e",
  "rgb": {
    "r": 140,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 307.304,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.45115,
    "c": 0.18215,
    "h": 333.9
  },
  "luminance": 0.07777
}

Semantic roles & 50–950 ramp

primary
#8C197E
secondary
#43BE52
accent
#ED513B
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8C197E

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

Preview Lab → · Contrast checker → · Palette generator →

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