#8C188E#8C188E

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

Color values

HEX#8C188E
RGBrgb(140, 24, 142)
HSLhsl(299, 71%, 33%)
HSVhsv(299, 83%, 56%)
CMYKcmyk(1.4%, 83.1%, 0%, 44.3%)
CIE-LABlab(34.36, 59.14, -37.76)
CIE-LCHlch(34.36, 70.17, 327.44°)
OKLaboklab(46.02% 0.1641 -0.105)
OKLCHoklch(46.02% 0.195 327.4)
XYZxyz(16.0241, 8.1829, 26.3214)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C188E #1A8E18
analogous
#51188E #8C188E #8E1855
triadic
#8C188E #8E8C18 #188E8C
tetradic
#8C188E #8E5118 #1A8E18 #18558E
square
#8C188E #8E5118 #1A8E18 #18558E
split-complementary
#8C188E #558E18 #188E51
monochromatic
#250625 #580F5A #8C188E #C021C2 #DC41DF

Accessibility & contrast

On white

7.97
#8C188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8C188E
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C188E#FFFFFF#000000##FFFFFF
##8C188E1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8c188e;
/* rgb */ color: rgb(140, 24, 142);
/* oklch */ color: oklch(46.0% 0.195 327.4);
Tailwind
colors: {
  custom: {
    50: '#b166af',
    500: '#8c188e',
    950: '#000000',
  },
}
SCSS
$custom: #8c188e;
$custom-light: #b166af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c188e",
  "rgb": {
    "r": 140,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 298.983,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.46015,
    "c": 0.1948,
    "h": 327.4
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#8C188E
secondary
#44C042
accent
#EE3A3D
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8C188E

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

Preview Lab → · Contrast checker → · Palette generator →

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