#8D338B#8D338B

#8D338B is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.4% C 0.162 H 328.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8D338B
RGBrgb(141, 51, 139)
HSLhsl(301, 47%, 38%)
HSVhsv(301, 64%, 55%)
CMYKcmyk(0%, 63.8%, 1.4%, 44.7%)
CIE-LABlab(37.65, 49.49, -30.68)
CIE-LCHlch(37.65, 58.23, 328.20°)
OKLaboklab(48.36% 0.1387 -0.0846)
OKLCHoklch(48.36% 0.162 328.6)
XYZxyz(16.8283, 9.8956, 25.4448)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D338B #338D35
analogous
#62338D #8D338B #8D335E
triadic
#8D338B #8B8D33 #338B8D
tetradic
#8D338B #8D6233 #338D35 #335E8D
square
#8D338B #8D6233 #338D35 #335E8D
split-complementary
#8D338B #5E8D33 #338D62
monochromatic
#331232 #60235F #8D338B #BA43B7 #CB6FC9

Accessibility & contrast

On white

7.05
#8D338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8D338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D338B
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D338B#FFFFFF#000000##FFFFFF
##8D338B1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29518E
Deuteranopia (green-blind)
#495D89
Tritanopia (blue-blind)
#923E5A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d338b;
/* rgb */ color: rgb(141, 51, 139);
/* oklch */ color: oklch(48.4% 0.162 328.6);
Tailwind
colors: {
  custom: {
    50: '#b171ad',
    500: '#8d338b',
    950: '#000000',
  },
}
SCSS
$custom: #8d338b;
$custom-light: #b171ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8d338b",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 301.333,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48355,
    "c": 0.16249,
    "h": 328.6
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#8D338B
secondary
#69B36A
accent
#D75451
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8D338B

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

Preview Lab → · Contrast checker → · Palette generator →

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