#8B158D#8B158D

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

Color values

HEX#8B158D
RGBrgb(139, 21, 141)
HSLhsl(299, 74%, 32%)
HSVhsv(299, 85%, 55%)
CMYKcmyk(1.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(33.88, 59.49, -37.93)
CIE-LCHlch(33.88, 70.55, 327.48°)
OKLaboklab(45.62% 0.1651 -0.1054)
OKLCHoklch(45.62% 0.196 327.4)
XYZxyz(15.7231, 7.9496, 25.9004)
Luminance0.0795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B158D #178D15
analogous
#4F158D #8B158D #8D1553
triadic
#8B158D #8D8B15 #158D8B
tetradic
#8B158D #8D4F15 #178D15 #15538D
square
#8B158D #8D4F15 #178D15 #15538D
split-complementary
#8B158D #538D15 #158D4F
monochromatic
#220522 #560D58 #8B158D #C01DC2 #DF3BE2

Accessibility & contrast

On white

8.11
#8B158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8B158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B158D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B158D#FFFFFF#000000##FFFFFF
##8B158D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#39558A
Tritanopia (blue-blind)
#8F2D53
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b158d;
/* rgb */ color: rgb(139, 21, 141);
/* oklch */ color: oklch(45.6% 0.196 327.4);
Tailwind
colors: {
  custom: {
    50: '#b165af',
    500: '#8b158d',
    950: '#000000',
  },
}
SCSS
$custom: #8b158d;
$custom-light: #b165af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b158d",
  "rgb": {
    "r": 139,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 299,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.4562,
    "c": 0.19589,
    "h": 327.4
  },
  "luminance": 0.07948
}

Semantic roles & 50–950 ramp

primary
#8B158D
secondary
#3FC13D
accent
#F1373A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B158D

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

Preview Lab → · Contrast checker → · Palette generator →

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