#8D1F8A#8D1F8A

#8D1F8A is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.186 H 329.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#8D1F8A
RGBrgb(141, 31, 138)
HSLhsl(302, 64%, 34%)
HSVhsv(302, 78%, 55%)
CMYKcmyk(0%, 78%, 2.1%, 44.7%)
CIE-LABlab(34.96, 56.77, -34.33)
CIE-LCHlch(34.96, 66.34, 328.84°)
OKLaboklab(46.4% 0.1599 -0.095)
OKLCHoklch(46.4% 0.186 329.3)
XYZxyz(16.0618, 8.4789, 24.8305)
Luminance0.0848 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F8A #1F8D22
analogous
#591F8D #8D1F8A #8D1F53
triadic
#8D1F8A #8A8D1F #1F8A8D
tetradic
#8D1F8A #8D591F #1F8D22 #1F538D
square
#8D1F8A #8D591F #1F8D22 #1F538D
split-complementary
#8D1F8A #538D1F #1F8D59
monochromatic
#290928 #5B1459 #8D1F8A #BF2ABB #D84ED4

Accessibility & contrast

On white

7.79
#8D1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D1F8A
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F8A#FFFFFF#000000##FFFFFF
##8D1F8A1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#923054
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d1f8a;
/* rgb */ color: rgb(141, 31, 138);
/* oklch */ color: oklch(46.4% 0.186 329.3);
Tailwind
colors: {
  custom: {
    50: '#b268ac',
    500: '#8d1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f8a;
$custom-light: #b268ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f8a",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 301.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46398,
    "c": 0.186,
    "h": 329.3
  },
  "luminance": 0.08478
}

Semantic roles & 50–950 ramp

primary
#8D1F8A
secondary
#4DBB50
accent
#E74541
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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