#8D1F95#8D1F95

#8D1F95 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.1% C 0.195 H 325.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8D1F95
RGBrgb(141, 31, 149)
HSLhsl(296, 66%, 35%)
HSVhsv(296, 79%, 58%)
CMYKcmyk(5.4%, 79.2%, 0%, 41.6%)
CIE-LABlab(35.62, 58.64, -40.03)
CIE-LCHlch(35.62, 71.00, 325.68°)
OKLaboklab(47.08% 0.1595 -0.1116)
OKLCHoklch(47.08% 0.195 325)
XYZxyz(16.8989, 8.8137, 29.2391)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F95 #27951F
analogous
#521F95 #8D1F95 #951F62
triadic
#8D1F95 #958D1F #1F958D
tetradic
#8D1F95 #95521F #27951F #1F6295
square
#8D1F95 #95521F #27951F #1F6295
split-complementary
#8D1F95 #62951F #1F9552
monochromatic
#2D0A30 #5D1462 #8D1F95 #BD2AC8 #D253DB

Accessibility & contrast

On white

7.60
#8D1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8D1F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F95
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F95#FFFFFF#000000##FFFFFF
##8D1F951.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#395892
Tritanopia (blue-blind)
#90355A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d1f95;
/* rgb */ color: rgb(141, 31, 149);
/* oklch */ color: oklch(47.1% 0.195 325.0);
Tailwind
colors: {
  custom: {
    50: '#b269b5',
    500: '#8d1f95',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f95;
$custom-light: #b269b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f95",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 295.932,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47082,
    "c": 0.19462,
    "h": 325
  },
  "luminance": 0.08813
}

Semantic roles & 50–950 ramp

primary
#8D1F95
secondary
#59BF51
accent
#E93F4B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D1F95

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

Preview Lab → · Contrast checker → · Palette generator →

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