#8D158B#8D158B

#8D158B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.195 H 329.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8D158B
RGBrgb(141, 21, 139)
HSLhsl(301, 74%, 32%)
HSVhsv(301, 85%, 55%)
CMYKcmyk(0%, 85.1%, 1.4%, 44.7%)
CIE-LABlab(34.12, 59.55, -36.29)
CIE-LCHlch(34.12, 69.74, 328.65°)
OKLaboklab(45.82% 0.1674 -0.1006)
OKLCHoklch(45.82% 0.195 329)
XYZxyz(15.9127, 8.0644, 25.1396)
Luminance0.0806 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D158B #158D17
analogous
#53158D #8D158B #8D154F
triadic
#8D158B #8B8D15 #158B8D
tetradic
#8D158B #8D5315 #158D17 #154F8D
square
#8D158B #8D5315 #158D17 #154F8D
split-complementary
#8D158B #4F8D15 #158D53
monochromatic
#220522 #580D56 #8D158B #C21DC0 #E23BDF

Accessibility & contrast

On white

8.04
#8D158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8D158B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D158B
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D158B#FFFFFF#000000##FFFFFF
##8D158B1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468E
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#922B52
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d158b;
/* rgb */ color: rgb(141, 21, 139);
/* oklch */ color: oklch(45.8% 0.195 329.0);
Tailwind
colors: {
  custom: {
    50: '#b265ad',
    500: '#8d158b',
    950: '#000000',
  },
}
SCSS
$custom: #8d158b;
$custom-light: #b265ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8d158b",
  "rgb": {
    "r": 141,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 301,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45817,
    "c": 0.19527,
    "h": 329
  },
  "luminance": 0.08063
}

Semantic roles & 50–950 ramp

primary
#8D158B
secondary
#3DC13F
accent
#F13A37
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D158B

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

Preview Lab → · Contrast checker → · Palette generator →

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