#8D1F87#8D1F87

#8D1F87 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.184 H 330.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#8D1F87
RGBrgb(141, 31, 135)
HSLhsl(303, 64%, 34%)
HSVhsv(303, 78%, 55%)
CMYKcmyk(0%, 78%, 4.3%, 44.7%)
CIE-LABlab(34.79, 56.28, -32.74)
CIE-LCHlch(34.79, 65.11, 329.81°)
OKLaboklab(46.22% 0.1599 -0.0904)
OKLCHoklch(46.22% 0.184 330.5)
XYZxyz(15.8476, 8.3932, 23.7024)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F87 #1F8D25
analogous
#5C1F8D #8D1F87 #8D1F50
triadic
#8D1F87 #878D1F #1F878D
tetradic
#8D1F87 #8D5C1F #1F8D25 #1F508D
square
#8D1F87 #8D5C1F #1F8D25 #1F508D
split-complementary
#8D1F87 #508D1F #1F8D5C
monochromatic
#290927 #5B1457 #8D1F87 #BF2AB7 #D84ED1

Accessibility & contrast

On white

7.84
#8D1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8D1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F87
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F87#FFFFFF#000000##FFFFFF
##8D1F871.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#425784
Tritanopia (blue-blind)
#932E52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8d1f87;
/* rgb */ color: rgb(141, 31, 135);
/* oklch */ color: oklch(46.2% 0.184 330.5);
Tailwind
colors: {
  custom: {
    50: '#b268aa',
    500: '#8d1f87',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f87;
$custom-light: #b268aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f87",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 303.273,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4622,
    "c": 0.1837,
    "h": 330.5
  },
  "luminance": 0.08392
}

Semantic roles & 50–950 ramp

primary
#8D1F87
secondary
#4DBB53
accent
#E74A41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8D1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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