#8D1F97#8D1F97

#8D1F97 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.196 H 324.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8D1F97
RGBrgb(141, 31, 151)
HSLhsl(295, 66%, 36%)
HSVhsv(295, 79%, 59%)
CMYKcmyk(6.6%, 79.5%, 0%, 40.8%)
CIE-LABlab(35.75, 58.99, -41.05)
CIE-LCHlch(35.75, 71.86, 325.17°)
OKLaboklab(47.21% 0.1593 -0.1146)
OKLCHoklch(47.21% 0.196 324.3)
XYZxyz(17.0599, 8.8782, 30.0872)
Luminance0.0888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F97 #29971F
analogous
#511F97 #8D1F97 #971F65
triadic
#8D1F97 #978D1F #1F978D
tetradic
#8D1F97 #97511F #29971F #1F6597
square
#8D1F97 #97511F #29971F #1F6597
split-complementary
#8D1F97 #65971F #1F9751
monochromatic
#2E0A31 #5E1564 #8D1F97 #BC29CA #D154DC

Accessibility & contrast

On white

7.57
#8D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8D1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F97
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F97#FFFFFF#000000##FFFFFF
##8D1F971.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#385894
Tritanopia (blue-blind)
#90375B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d1f97;
/* rgb */ color: rgb(141, 31, 151);
/* oklch */ color: oklch(47.2% 0.196 324.3);
Tailwind
colors: {
  custom: {
    50: '#b269b6',
    500: '#8d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f97;
$custom-light: #b269b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f97",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 295,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.47212,
    "c": 0.19622,
    "h": 324.3
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#8D1F97
secondary
#5BBF52
accent
#E93F4D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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