#8D1F8B#8D1F8B

#8D1F8B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.5% C 0.187 H 328.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8D1F8B
RGBrgb(141, 31, 139)
HSLhsl(301, 64%, 34%)
HSVhsv(301, 78%, 55%)
CMYKcmyk(0%, 78%, 1.4%, 44.7%)
CIE-LABlab(35.02, 56.94, -34.85)
CIE-LCHlch(35.02, 66.76, 328.53°)
OKLaboklab(46.46% 0.1599 -0.0965)
OKLCHoklch(46.46% 0.187 328.9)
XYZxyz(16.1345, 8.5080, 25.2135)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F8B #1F8D21
analogous
#581F8D #8D1F8B #8D1F54
triadic
#8D1F8B #8B8D1F #1F8B8D
tetradic
#8D1F8B #8D581F #1F8D21 #1F548D
square
#8D1F8B #8D581F #1F8D21 #1F548D
split-complementary
#8D1F8B #548D1F #1F8D58
monochromatic
#290928 #5B145A #8D1F8B #BF2ABC #D84ED6

Accessibility & contrast

On white

7.77
#8D1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8D1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F8B
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F8B#FFFFFF#000000##FFFFFF
##8D1F8B1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07498E
Deuteranopia (green-blind)
#405788
Tritanopia (blue-blind)
#923054
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d1f8b;
/* rgb */ color: rgb(141, 31, 139);
/* oklch */ color: oklch(46.5% 0.187 328.9);
Tailwind
colors: {
  custom: {
    50: '#b268ad',
    500: '#8d1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f8b;
$custom-light: #b268ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f8b",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 301.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46459,
    "c": 0.18677,
    "h": 328.9
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#8D1F8B
secondary
#4DBB4F
accent
#E74441
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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