#8B138E#8B138E

#8B138E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.6% C 0.198 H 327.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#8B138E
RGBrgb(139, 19, 142)
HSLhsl(299, 76%, 32%)
HSVhsv(299, 87%, 56%)
CMYKcmyk(2.1%, 86.6%, 0%, 44.3%)
CIE-LABlab(33.79, 60.08, -38.68)
CIE-LCHlch(33.79, 71.46, 327.23°)
OKLaboklab(45.58% 0.1662 -0.1076)
OKLCHoklch(45.58% 0.198 327.1)
XYZxyz(15.7626, 7.9089, 26.2823)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B138E #168E13
analogous
#4E138E #8B138E #8E1354
triadic
#8B138E #8E8B13 #138E8B
tetradic
#8B138E #8E4E13 #168E13 #13548E
square
#8B138E #8E4E13 #168E13 #13548E
split-complementary
#8B138E #548E13 #138E4E
monochromatic
#210522 #560C58 #8B138E #C01AC4 #E037E4

Accessibility & contrast

On white

8.13
#8B138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8B138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B138E
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B138E#FFFFFF#000000##FFFFFF
##8B138E1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#37548B
Tritanopia (blue-blind)
#8F2D54
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b138e;
/* rgb */ color: rgb(139, 19, 142);
/* oklch */ color: oklch(45.6% 0.198 327.1);
Tailwind
colors: {
  custom: {
    50: '#b164b0',
    500: '#8b138e',
    950: '#000000',
  },
}
SCSS
$custom: #8b138e;
$custom-light: #b164b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b138e",
  "rgb": {
    "r": 139,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 298.537,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.19802,
    "h": 327.1
  },
  "luminance": 0.07908
}

Semantic roles & 50–950 ramp

primary
#8B138E
secondary
#3EC23B
accent
#F33539
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B138E

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

Preview Lab → · Contrast checker → · Palette generator →

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