#8B158F#8B158F

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

Color values

HEX#8B158F
RGBrgb(139, 21, 143)
HSLhsl(298, 74%, 32%)
HSVhsv(298, 85%, 56%)
CMYKcmyk(2.8%, 85.3%, 0%, 43.9%)
CIE-LABlab(34.00, 59.82, -38.96)
CIE-LCHlch(34.00, 71.38, 326.92°)
OKLaboklab(45.75% 0.1649 -0.1085)
OKLCHoklch(45.75% 0.197 326.7)
XYZxyz(15.8733, 8.0096, 26.6912)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B158F #198F15
analogous
#4E158F #8B158F #8F1556
triadic
#8B158F #8F8B15 #158F8B
tetradic
#8B158F #8F4E15 #198F15 #15568F
square
#8B158F #8F4E15 #198F15 #15568F
split-complementary
#8B158F #568F15 #158F4E
monochromatic
#230524 #570D5A #8B158F #BF1DC4 #DD3CE2

Accessibility & contrast

On white

8.07
#8B158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B158F
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B158F#FFFFFF#000000##FFFFFF
##8B158F1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#37558C
Tritanopia (blue-blind)
#8F2E55
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8b158f;
/* rgb */ color: rgb(139, 21, 143);
/* oklch */ color: oklch(45.7% 0.197 326.7);
Tailwind
colors: {
  custom: {
    50: '#b165b0',
    500: '#8b158f',
    950: '#000000',
  },
}
SCSS
$custom: #8b158f;
$custom-light: #b165b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b158f",
  "rgb": {
    "r": 139,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 298.033,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45748,
    "c": 0.19739,
    "h": 326.7
  },
  "luminance": 0.08008
}

Semantic roles & 50–950 ramp

primary
#8B158F
secondary
#42C23E
accent
#F1373D
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #8B158F

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

Preview Lab → · Contrast checker → · Palette generator →

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