#8C188F#8C188F

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

Color values

HEX#8C188F
RGBrgb(140, 24, 143)
HSLhsl(298, 71%, 33%)
HSVhsv(298, 83%, 56%)
CMYKcmyk(2.1%, 83.2%, 0%, 43.9%)
CIE-LABlab(34.42, 59.31, -38.28)
CIE-LCHlch(34.42, 70.59, 327.16°)
OKLaboklab(46.08% 0.1641 -0.1065)
OKLCHoklch(46.08% 0.196 327)
XYZxyz(16.0995, 8.2131, 26.7186)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C188F #1B8F18
analogous
#50188F #8C188F #8F1857
triadic
#8C188F #8F8C18 #188F8C
tetradic
#8C188F #8F5018 #1B8F18 #18578F
square
#8C188F #8F5018 #1B8F18 #18578F
split-complementary
#8C188F #578F18 #188F50
monochromatic
#250626 #590F5B #8C188F #BF21C3 #DB42DF

Accessibility & contrast

On white

7.95
#8C188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C188F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C188F#FFFFFF#000000##FFFFFF
##8C188F1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#39568C
Tritanopia (blue-blind)
#902F55
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8c188f;
/* rgb */ color: rgb(140, 24, 143);
/* oklch */ color: oklch(46.1% 0.196 327.0);
Tailwind
colors: {
  custom: {
    50: '#b166b0',
    500: '#8c188f',
    950: '#000000',
  },
}
SCSS
$custom: #8c188f;
$custom-light: #b166b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c188f",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 298.487,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.46079,
    "c": 0.19557,
    "h": 327
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

primary
#8C188F
secondary
#46C043
accent
#EE3A3E
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C188F

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

Preview Lab → · Contrast checker → · Palette generator →

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