#8D1F81#8D1F81

#8D1F81 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.179 H 333.1°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8D1F81
RGBrgb(141, 31, 129)
HSLhsl(307, 64%, 34%)
HSVhsv(307, 78%, 55%)
CMYKcmyk(0%, 78%, 8.5%, 44.7%)
CIE-LABlab(34.46, 55.32, -29.54)
CIE-LCHlch(34.46, 62.72, 331.90°)
OKLaboklab(45.87% 0.1598 -0.0811)
OKLCHoklch(45.87% 0.179 333.1)
XYZxyz(15.4370, 8.2290, 21.5400)
Luminance0.0823 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F81 #1F8D2B
analogous
#621F8D #8D1F81 #8D1F4A
triadic
#8D1F81 #818D1F #1F818D
tetradic
#8D1F81 #8D621F #1F8D2B #1F4A8D
square
#8D1F81 #8D621F #1F8D2B #1F4A8D
split-complementary
#8D1F81 #4A8D1F #1F8D62
monochromatic
#290925 #5B1453 #8D1F81 #BF2AAF #D84EC9

Accessibility & contrast

On white

7.94
#8D1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8D1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F81
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F81#FFFFFF#000000##FFFFFF
##8D1F811.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194784
Deuteranopia (green-blind)
#45577E
Tritanopia (blue-blind)
#942B4F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d1f81;
/* rgb */ color: rgb(141, 31, 129);
/* oklch */ color: oklch(45.9% 0.179 333.1);
Tailwind
colors: {
  custom: {
    50: '#b268a6',
    500: '#8d1f81',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f81;
$custom-light: #b268a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f81",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 306.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45873,
    "c": 0.17919,
    "h": 333.1
  },
  "luminance": 0.08228
}

Semantic roles & 50–950 ramp

primary
#8D1F81
secondary
#4DBB59
accent
#E75341
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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