#8E138B#8E138B

#8E138B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.197 H 329.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8E138B
RGBrgb(142, 19, 139)
HSLhsl(301, 76%, 32%)
HSVhsv(301, 87%, 56%)
CMYKcmyk(0%, 86.6%, 2.1%, 44.3%)
CIE-LABlab(34.15, 60.18, -36.22)
CIE-LCHlch(34.15, 70.24, 328.96°)
OKLaboklab(45.88% 0.1696 -0.1004)
OKLCHoklch(45.88% 0.197 329.4)
XYZxyz(16.0483, 8.0819, 25.1358)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E138B #138E16
analogous
#54138E #8E138B #8E134E
triadic
#8E138B #8B8E13 #138B8E
tetradic
#8E138B #8E5413 #138E16 #134E8E
square
#8E138B #8E5413 #138E16 #134E8E
split-complementary
#8E138B #4E8E13 #138E54
monochromatic
#220521 #580C56 #8E138B #C41AC0 #E437E0

Accessibility & contrast

On white

8.03
#8E138B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8E138B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E138B
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E138B#FFFFFF#000000##FFFFFF
##8E138B1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#3D5688
Tritanopia (blue-blind)
#932A52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e138b;
/* rgb */ color: rgb(142, 19, 139);
/* oklch */ color: oklch(45.9% 0.197 329.4);
Tailwind
colors: {
  custom: {
    50: '#b365ad',
    500: '#8e138b',
    950: '#000000',
  },
}
SCSS
$custom: #8e138b;
$custom-light: #b365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8e138b",
  "rgb": {
    "r": 142,
    "g": 19,
    "b": 139
  },
  "hsl": {
    "h": 301.463,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45877,
    "c": 0.1971,
    "h": 329.4
  },
  "luminance": 0.08081
}

Semantic roles & 50–950 ramp

primary
#8E138B
secondary
#3BC23E
accent
#F33935
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8E138B

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

Preview Lab → · Contrast checker → · Palette generator →

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