#8D338A#8D338A

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

Color values

HEX#8D338A
RGBrgb(141, 51, 138)
HSLhsl(302, 47%, 38%)
HSVhsv(302, 64%, 55%)
CMYKcmyk(0%, 63.8%, 2.1%, 44.7%)
CIE-LABlab(37.60, 49.31, -30.15)
CIE-LCHlch(37.60, 57.80, 328.56°)
OKLaboklab(48.3% 0.1387 -0.0831)
OKLCHoklch(48.3% 0.162 329.1)
XYZxyz(16.7556, 9.8665, 25.0617)
Luminance0.0987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D338A #338D36
analogous
#63338D #8D338A #8D335D
triadic
#8D338A #8A8D33 #338A8D
tetradic
#8D338A #8D6333 #338D36 #335D8D
square
#8D338A #8D6333 #338D36 #335D8D
split-complementary
#8D338A #5D8D33 #338D63
monochromatic
#331232 #60235E #8D338A #BA43B6 #CB6FC8

Accessibility & contrast

On white

7.06
#8D338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8D338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D338A
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D338A#FFFFFF#000000##FFFFFF
##8D338A1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#4A5D88
Tritanopia (blue-blind)
#923E5A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8d338a;
/* rgb */ color: rgb(141, 51, 138);
/* oklch */ color: oklch(48.3% 0.162 329.1);
Tailwind
colors: {
  custom: {
    50: '#b171ac',
    500: '#8d338a',
    950: '#000000',
  },
}
SCSS
$custom: #8d338a;
$custom-light: #b171ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8d338a",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 302,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.483,
    "c": 0.16163,
    "h": 329.1
  },
  "luminance": 0.09865
}

Semantic roles & 50–950 ramp

primary
#8D338A
secondary
#69B36B
accent
#D75651
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8D338A

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

Preview Lab → · Contrast checker → · Palette generator →

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