#8D1F8D#8D1F8D

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

Color values

HEX#8D1F8D
RGBrgb(141, 31, 141)
HSLhsl(300, 64%, 34%)
HSVhsv(300, 78%, 55%)
CMYKcmyk(0%, 78%, 0%, 44.7%)
CIE-LABlab(35.14, 57.27, -35.90)
CIE-LCHlch(35.14, 67.59, 327.92°)
OKLaboklab(46.58% 0.1599 -0.0995)
OKLCHoklch(46.58% 0.188 328.1)
XYZxyz(16.2820, 8.5670, 25.9902)
Luminance0.0857 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F8D #1F8D1F
analogous
#561F8D #8D1F8D #8D1F56
triadic
#8D1F8D #8D8D1F #1F8D8D
tetradic
#8D1F8D #8D561F #1F8D1F #1F568D
square
#8D1F8D #8D561F #1F8D1F #1F568D
split-complementary
#8D1F8D #568D1F #1F8D56
monochromatic
#290929 #5B145B #8D1F8D #BF2ABF #D84ED8

Accessibility & contrast

On white

7.74
#8D1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8D1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F8D
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F8D#FFFFFF#000000##FFFFFF
##8D1F8D1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A90
Deuteranopia (green-blind)
#3E588A
Tritanopia (blue-blind)
#923155
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8d1f8d;
/* rgb */ color: rgb(141, 31, 141);
/* oklch */ color: oklch(46.6% 0.188 328.1);
Tailwind
colors: {
  custom: {
    50: '#b268af',
    500: '#8d1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f8d;
$custom-light: #b268af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f8d",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 300,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4658,
    "c": 0.18832,
    "h": 328.1
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#8D1F8D
secondary
#4DBB4D
accent
#E74141
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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