#8C138E#8C138E

#8C138E is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.7% C 0.198 H 327.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8C138E
RGBrgb(140, 19, 142)
HSLhsl(299, 76%, 32%)
HSVhsv(299, 87%, 56%)
CMYKcmyk(1.4%, 86.6%, 0%, 44.3%)
CIE-LABlab(33.97, 60.27, -38.38)
CIE-LCHlch(33.97, 71.46, 327.51°)
OKLaboklab(45.74% 0.1673 -0.1067)
OKLCHoklch(45.74% 0.198 327.5)
XYZxyz(15.9303, 7.9954, 26.2902)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C138E #158E13
analogous
#4F138E #8C138E #8E1353
triadic
#8C138E #8E8C13 #138E8C
tetradic
#8C138E #8E4F13 #158E13 #13538E
square
#8C138E #8E4F13 #158E13 #13538E
split-complementary
#8C138E #538E13 #138E4F
monochromatic
#220522 #570C58 #8C138E #C11AC4 #E137E4

Accessibility & contrast

On white

8.08
#8C138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8C138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C138E
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C138E#FFFFFF#000000##FFFFFF
##8C138E1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#902C54
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8c138e;
/* rgb */ color: rgb(140, 19, 142);
/* oklch */ color: oklch(45.7% 0.198 327.5);
Tailwind
colors: {
  custom: {
    50: '#b265af',
    500: '#8c138e',
    950: '#000000',
  },
}
SCSS
$custom: #8c138e;
$custom-light: #b265af;
$custom-dark: #000000;
JSON
{
  "hex": "#8c138e",
  "rgb": {
    "r": 140,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 299.024,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45741,
    "c": 0.19845,
    "h": 327.5
  },
  "luminance": 0.07994
}

Semantic roles & 50–950 ramp

primary
#8C138E
secondary
#3DC23B
accent
#F33538
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #8C138E

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

Preview Lab → · Contrast checker → · Palette generator →

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