#8D1F7F#8D1F7F

#8D1F7F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.178 H 334.0°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#8D1F7F
RGBrgb(141, 31, 127)
HSLhsl(308, 64%, 34%)
HSVhsv(308, 78%, 55%)
CMYKcmyk(0%, 78%, 9.9%, 44.7%)
CIE-LABlab(34.35, 55.01, -28.47)
CIE-LCHlch(34.35, 61.94, 332.64°)
OKLaboklab(45.76% 0.1597 -0.078)
OKLCHoklch(45.76% 0.178 334)
XYZxyz(15.3054, 8.1763, 20.8467)
Luminance0.0818 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F7F #1F8D2D
analogous
#641F8D #8D1F7F #8D1F48
triadic
#8D1F7F #7F8D1F #1F7F8D
tetradic
#8D1F7F #8D641F #1F8D2D #1F488D
square
#8D1F7F #8D641F #1F8D2D #1F488D
split-complementary
#8D1F7F #488D1F #1F8D64
monochromatic
#290925 #5B1452 #8D1F7F #BF2AAC #D84EC7

Accessibility & contrast

On white

7.97
#8D1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8D1F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F7F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F7F#FFFFFF#000000##FFFFFF
##8D1F7F1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4782
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#942A4E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d1f7f;
/* rgb */ color: rgb(141, 31, 127);
/* oklch */ color: oklch(45.8% 0.178 334.0);
Tailwind
colors: {
  custom: {
    50: '#b268a4',
    500: '#8d1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f7f;
$custom-light: #b268a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f7f",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 307.636,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45761,
    "c": 0.17772,
    "h": 334
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#8D1F7F
secondary
#4DBB5B
accent
#E75641
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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