#8D337F#8D337F

#8D337F is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.7% C 0.152 H 334.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8D337F
RGBrgb(141, 51, 127)
HSLhsl(309, 47%, 38%)
HSVhsv(309, 64%, 55%)
CMYKcmyk(0%, 63.8%, 9.9%, 44.7%)
CIE-LABlab(37.05, 47.42, -24.23)
CIE-LCHlch(37.05, 53.25, 332.93°)
OKLaboklab(47.72% 0.1374 -0.0661)
OKLCHoklch(47.72% 0.152 334.3)
XYZxyz(15.9992, 9.5639, 21.0779)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D337F #338D41
analogous
#6E338D #8D337F #8D3352
triadic
#8D337F #7F8D33 #337F8D
tetradic
#8D337F #8D6E33 #338D41 #33528D
square
#8D337F #8D6E33 #338D41 #33528D
split-complementary
#8D337F #528D33 #338D6E
monochromatic
#33122E #602357 #8D337F #BA43A7 #CB6FBD

Accessibility & contrast

On white

7.21
#8D337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8D337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D337F
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D337F#FFFFFF#000000##FFFFFF
##8D337F1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324F81
Deuteranopia (green-blind)
#4F5C7D
Tritanopia (blue-blind)
#933954
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d337f;
/* rgb */ color: rgb(141, 51, 127);
/* oklch */ color: oklch(47.7% 0.152 334.3);
Tailwind
colors: {
  custom: {
    50: '#b171a4',
    500: '#8d337f',
    950: '#000000',
  },
}
SCSS
$custom: #8d337f;
$custom-light: #b171a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8d337f",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 309.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47716,
    "c": 0.15243,
    "h": 334.3
  },
  "luminance": 0.09563
}

Semantic roles & 50–950 ramp

primary
#8D337F
secondary
#69B374
accent
#D76651
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8D337F

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

Preview Lab → · Contrast checker → · Palette generator →

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