#8D1F9D#8D1F9D

#8D1F9D is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.6% C 0.201 H 322.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8D1F9D
RGBrgb(141, 31, 157)
HSLhsl(292, 67%, 37%)
HSVhsv(292, 80%, 62%)
CMYKcmyk(10.2%, 80.3%, 0%, 38.4%)
CIE-LABlab(36.13, 60.06, -44.07)
CIE-LCHlch(36.13, 74.49, 323.73°)
OKLaboklab(47.61% 0.1587 -0.1234)
OKLCHoklch(47.61% 0.201 322.1)
XYZxyz(17.5597, 9.0780, 32.7191)
Luminance0.0908 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F9D #2F9D1F
analogous
#4E1F9D #8D1F9D #9D1F6E
triadic
#8D1F9D #9D8D1F #1F9D8D
tetradic
#8D1F9D #9D4E1F #2F9D1F #1F6E9D
square
#8D1F9D #9D4E1F #2F9D1F #1F6E9D
split-complementary
#8D1F9D #6E9D1F #1F9D4E
monochromatic
#310B37 #5F156A #8D1F9D #BB29D0 #CD58DE

Accessibility & contrast

On white

7.46
#8D1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8D1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F9D
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F9D#FFFFFF#000000##FFFFFF
##8D1F9D1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#33599A
Tritanopia (blue-blind)
#8F3A5F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d1f9d;
/* rgb */ color: rgb(141, 31, 157);
/* oklch */ color: oklch(47.6% 0.201 322.1);
Tailwind
colors: {
  custom: {
    50: '#b269ba',
    500: '#8d1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f9d;
$custom-light: #b269ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f9d",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 292.381,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47608,
    "c": 0.20106,
    "h": 322.1
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#8D1F9D
secondary
#64C256
accent
#EA3E54
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8D1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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