#8D1F96#8D1F96

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

Color values

HEX#8D1F96
RGBrgb(141, 31, 150)
HSLhsl(295, 66%, 35%)
HSVhsv(295, 79%, 59%)
CMYKcmyk(6%, 79.3%, 0%, 41.2%)
CIE-LABlab(35.69, 58.81, -40.54)
CIE-LCHlch(35.69, 71.43, 325.42°)
OKLaboklab(47.15% 0.1594 -0.1131)
OKLCHoklch(47.15% 0.195 324.6)
XYZxyz(16.9791, 8.8458, 29.6614)
Luminance0.0885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F96 #28961F
analogous
#511F96 #8D1F96 #961F63
triadic
#8D1F96 #968D1F #1F968D
tetradic
#8D1F96 #96511F #28961F #1F6396
square
#8D1F96 #96511F #28961F #1F6396
split-complementary
#8D1F96 #63961F #1F9651
monochromatic
#2E0A31 #5D1563 #8D1F96 #BD29C9 #D154DC

Accessibility & contrast

On white

7.58
#8D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8D1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F96
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F96#FFFFFF#000000##FFFFFF
##8D1F961.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#385893
Tritanopia (blue-blind)
#90365A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8d1f96;
/* rgb */ color: rgb(141, 31, 150);
/* oklch */ color: oklch(47.1% 0.195 324.6);
Tailwind
colors: {
  custom: {
    50: '#b269b5',
    500: '#8d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f96;
$custom-light: #b269b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f96",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 295.462,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.47147,
    "c": 0.19542,
    "h": 324.6
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#8D1F96
secondary
#5ABF52
accent
#E93F4C
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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