#8D1F9F#8D1F9F

#8D1F9F is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.7% C 0.203 H 321.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8D1F9F
RGBrgb(141, 31, 159)
HSLhsl(292, 67%, 37%)
HSVhsv(292, 81%, 62%)
CMYKcmyk(11.3%, 80.5%, 0%, 37.6%)
CIE-LABlab(36.27, 60.42, -45.07)
CIE-LCHlch(36.27, 75.38, 323.27°)
OKLaboklab(47.74% 0.1585 -0.1263)
OKLCHoklch(47.74% 0.203 321.4)
XYZxyz(17.7318, 9.1469, 33.6257)
Luminance0.0915 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F9F #319F1F
analogous
#4D1F9F #8D1F9F #9F1F71
triadic
#8D1F9F #9F8D1F #1F9F8D
tetradic
#8D1F9F #9F4D1F #319F1F #1F719F
square
#8D1F9F #9F4D1F #319F1F #1F719F
split-complementary
#8D1F9F #719F1F #1F9F4D
monochromatic
#320B39 #60156C #8D1F9F #BA29D2 #CC5ADF

Accessibility & contrast

On white

7.42
#8D1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8D1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F9F
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F9F#FFFFFF#000000##FFFFFF
##8D1F9F1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#31599C
Tritanopia (blue-blind)
#8E3B60
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d1f9f;
/* rgb */ color: rgb(141, 31, 159);
/* oklch */ color: oklch(47.7% 0.203 321.4);
Tailwind
colors: {
  custom: {
    50: '#b269bc',
    500: '#8d1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f9f;
$custom-light: #b269bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f9f",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 291.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47742,
    "c": 0.20268,
    "h": 321.4
  },
  "luminance": 0.09146
}

Semantic roles & 50–950 ramp

primary
#8D1F9F
secondary
#66C357
accent
#EA3E56
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8D1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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