#8D1F9C#8D1F9C

#8D1F9C is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.5% C 0.200 H 322.5°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8D1F9C
RGBrgb(141, 31, 156)
HSLhsl(293, 67%, 37%)
HSVhsv(293, 80%, 61%)
CMYKcmyk(9.6%, 80.1%, 0%, 38.8%)
CIE-LABlab(36.07, 59.88, -43.57)
CIE-LCHlch(36.07, 74.05, 323.96°)
OKLaboklab(47.54% 0.1588 -0.1219)
OKLCHoklch(47.54% 0.2 322.5)
XYZxyz(17.4746, 9.0440, 32.2713)
Luminance0.0904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D1F9C #2E9C1F
analogous
#4F1F9C #8D1F9C #9C1F6D
triadic
#8D1F9C #9C8D1F #1F9C8D
tetradic
#8D1F9C #9C4F1F #2E9C1F #1F6D9C
square
#8D1F9C #9C4F1F #2E9C1F #1F6D9C
split-complementary
#8D1F9C #6D9C1F #1F9C4F
monochromatic
#310B36 #5F1569 #8D1F9C #BB29CF #CE58DE

Accessibility & contrast

On white

7.48
#8D1F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8D1F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D1F9C
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D1F9C#FFFFFF#000000##FFFFFF
##8D1F9C1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#345999
Tritanopia (blue-blind)
#8F395E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8d1f9c;
/* rgb */ color: rgb(141, 31, 156);
/* oklch */ color: oklch(47.5% 0.200 322.5);
Tailwind
colors: {
  custom: {
    50: '#b269ba',
    500: '#8d1f9c',
    950: '#000000',
  },
}
SCSS
$custom: #8d1f9c;
$custom-light: #b269ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8d1f9c",
  "rgb": {
    "r": 141,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 292.8,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47541,
    "c": 0.20025,
    "h": 322.5
  },
  "luminance": 0.09043
}

Semantic roles & 50–950 ramp

primary
#8D1F9C
secondary
#62C155
accent
#EA3E53
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8D1F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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