#8C1B97#8C1B97

#8C1B97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.8% C 0.199 H 324.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#8C1B97
RGBrgb(140, 27, 151)
HSLhsl(295, 70%, 35%)
HSVhsv(295, 82%, 59%)
CMYKcmyk(7.3%, 82.1%, 0%, 40.8%)
CIE-LABlab(35.19, 59.91, -41.95)
CIE-LCHlch(35.19, 73.13, 325.00°)
OKLaboklab(46.79% 0.1612 -0.1172)
OKLCHoklch(46.79% 0.199 324)
XYZxyz(16.7926, 8.5948, 30.0466)
Luminance0.0859 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C1B97 #26971B
analogous
#4E1B97 #8C1B97 #971B64
triadic
#8C1B97 #978C1B #1B978C
tetradic
#8C1B97 #974E1B #26971B #1B6497
square
#8C1B97 #974E1B #26971B #1B6497
split-complementary
#8C1B97 #64971B #1B974E
monochromatic
#2C082F #5C1263 #8C1B97 #BC24CB #D24DDF

Accessibility & contrast

On white

7.72
#8C1B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8C1B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C1B97
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C1B97#FFFFFF#000000##FFFFFF
##8C1B971.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#355794
Tritanopia (blue-blind)
#8F355A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8c1b97;
/* rgb */ color: rgb(140, 27, 151);
/* oklch */ color: oklch(46.8% 0.199 324.0);
Tailwind
colors: {
  custom: {
    50: '#b267b6',
    500: '#8c1b97',
    950: '#000000',
  },
}
SCSS
$custom: #8c1b97;
$custom-light: #b267b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8c1b97",
  "rgb": {
    "r": 140,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 294.677,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46785,
    "c": 0.19933,
    "h": 324
  },
  "luminance": 0.08594
}

Semantic roles & 50–950 ramp

primary
#8C1B97
secondary
#57C14C
accent
#EC3B4B
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8C1B97

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

Preview Lab → · Contrast checker → · Palette generator →

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