#8D1F8E#8D1F8E

#8D1F8E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.6% C 0.189 H 327.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#8D1F8E
RGBrgb(141, 31, 142)
HSLhsl(299, 64%, 34%)
HSVhsv(299, 78%, 56%)
CMYKcmyk(0.7%, 78.2%, 0%, 44.3%)
CIE-LABlab(35.20, 57.44, -36.42)
CIE-LCHlch(35.20, 68.01, 327.62°)
OKLaboklab(46.64% 0.1598 -0.1011)
OKLCHoklch(46.64% 0.189 327.7)
XYZxyz(16.3568, 8.5969, 26.3838)
Luminance0.0860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F8E #208E1F
analogous
#561F8E #8D1F8E #8E1F58
triadic
#8D1F8E #8E8D1F #1F8E8D
tetradic
#8D1F8E #8E561F #208E1F #1F588E
square
#8D1F8E #8E561F #208E1F #1F588E
split-complementary
#8D1F8E #588E1F #1F8E56
monochromatic
#29092A #5B145C #8D1F8E #BF2AC0 #D74FD9

Accessibility & contrast

On white

7.72
#8D1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8D1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F8E
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F8E#FFFFFF#000000##FFFFFF
##8D1F8E1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#3E588B
Tritanopia (blue-blind)
#913256
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d1f8e;
/* rgb */ color: rgb(141, 31, 142);
/* oklch */ color: oklch(46.6% 0.189 327.7);
Tailwind
colors: {
  custom: {
    50: '#b269af',
    500: '#8d1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f8e;
$custom-light: #b269af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f8e",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 299.459,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.46642,
    "c": 0.1891,
    "h": 327.7
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#8D1F8E
secondary
#4EBB4D
accent
#E74142
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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