#8D1F84#8D1F84

#8D1F84 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.181 H 331.8°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#8D1F84
RGBrgb(141, 31, 132)
HSLhsl(305, 64%, 34%)
HSVhsv(305, 78%, 55%)
CMYKcmyk(0%, 78%, 6.4%, 44.7%)
CIE-LABlab(34.62, 55.80, -31.15)
CIE-LCHlch(34.62, 63.90, 330.83°)
OKLaboklab(46.05% 0.1599 -0.0858)
OKLCHoklch(46.05% 0.181 331.8)
XYZxyz(15.6394, 8.3099, 22.6056)
Luminance0.0831 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F84 #1F8D28
analogous
#5F1F8D #8D1F84 #8D1F4D
triadic
#8D1F84 #848D1F #1F848D
tetradic
#8D1F84 #8D5F1F #1F8D28 #1F4D8D
square
#8D1F84 #8D5F1F #1F8D28 #1F4D8D
split-complementary
#8D1F84 #4D8D1F #1F8D5F
monochromatic
#290926 #5B1455 #8D1F84 #BF2AB3 #D84ECD

Accessibility & contrast

On white

7.89
#8D1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8D1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F84
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F84#FFFFFF#000000##FFFFFF
##8D1F841.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154887
Deuteranopia (green-blind)
#445781
Tritanopia (blue-blind)
#932D50
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d1f84;
/* rgb */ color: rgb(141, 31, 132);
/* oklch */ color: oklch(46.0% 0.181 331.8);
Tailwind
colors: {
  custom: {
    50: '#b268a8',
    500: '#8d1f84',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f84;
$custom-light: #b268a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f84",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 304.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46045,
    "c": 0.18143,
    "h": 331.8
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#8D1F84
secondary
#4DBB56
accent
#E74E41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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