#8D1F7D#8D1F7D

#8D1F7D is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.176 H 334.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8D1F7D
RGBrgb(141, 31, 125)
HSLhsl(309, 64%, 34%)
HSVhsv(309, 78%, 55%)
CMYKcmyk(0%, 78%, 11.3%, 44.7%)
CIE-LABlab(34.24, 54.70, -27.38)
CIE-LCHlch(34.24, 61.17, 333.41°)
OKLaboklab(45.65% 0.1595 -0.0749)
OKLCHoklch(45.65% 0.176 334.8)
XYZxyz(15.1764, 8.1247, 20.1670)
Luminance0.0812 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F7D #1F8D2F
analogous
#661F8D #8D1F7D #8D1F46
triadic
#8D1F7D #7D8D1F #1F7D8D
tetradic
#8D1F7D #8D661F #1F8D2F #1F468D
square
#8D1F7D #8D661F #1F8D2F #1F468D
split-complementary
#8D1F7D #468D1F #1F8D66
monochromatic
#290924 #5B1451 #8D1F7D #BF2AA9 #D84EC4

Accessibility & contrast

On white

8.00
#8D1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8D1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F7D
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F7D#FFFFFF#000000##FFFFFF
##8D1F7D1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4680
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#94294C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8d1f7d;
/* rgb */ color: rgb(141, 31, 125);
/* oklch */ color: oklch(45.7% 0.176 334.8);
Tailwind
colors: {
  custom: {
    50: '#b268a3',
    500: '#8d1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f7d;
$custom-light: #b268a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f7d",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 308.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45651,
    "c": 0.17626,
    "h": 334.8
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

primary
#8D1F7D
secondary
#4DBB5D
accent
#E75941
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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