#8D1F7E#8D1F7E

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

Color values

HEX#8D1F7E
RGBrgb(141, 31, 126)
HSLhsl(308, 64%, 34%)
HSVhsv(308, 78%, 55%)
CMYKcmyk(0%, 78%, 10.6%, 44.7%)
CIE-LABlab(34.29, 54.85, -27.92)
CIE-LCHlch(34.29, 61.55, 333.02°)
OKLaboklab(45.71% 0.1596 -0.0765)
OKLCHoklch(45.71% 0.177 334.4)
XYZxyz(15.2406, 8.1504, 20.5051)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F7E #1F8D2E
analogous
#651F8D #8D1F7E #8D1F47
triadic
#8D1F7E #7E8D1F #1F7E8D
tetradic
#8D1F7E #8D651F #1F8D2E #1F478D
square
#8D1F7E #8D651F #1F8D2E #1F478D
split-complementary
#8D1F7E #478D1F #1F8D65
monochromatic
#290924 #5B1451 #8D1F7E #BF2AAB #D84EC5

Accessibility & contrast

On white

7.99
#8D1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8D1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F7E
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F7E#FFFFFF#000000##FFFFFF
##8D1F7E1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4681
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#942A4D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8d1f7e;
/* rgb */ color: rgb(141, 31, 126);
/* oklch */ color: oklch(45.7% 0.177 334.4);
Tailwind
colors: {
  custom: {
    50: '#b268a3',
    500: '#8d1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f7e;
$custom-light: #b268a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f7e",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 308.182,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45706,
    "c": 0.17699,
    "h": 334.4
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#8D1F7E
secondary
#4DBB5C
accent
#E75741
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8D1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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