#8D338E#8D338E

#8D338E is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.5% C 0.165 H 327.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8D338E
RGBrgb(141, 51, 142)
HSLhsl(299, 47%, 38%)
HSVhsv(299, 64%, 56%)
CMYKcmyk(0.7%, 64.1%, 0%, 44.3%)
CIE-LABlab(37.81, 50.03, -32.27)
CIE-LCHlch(37.81, 59.53, 327.18°)
OKLaboklab(48.52% 0.1389 -0.0892)
OKLCHoklch(48.52% 0.165 327.3)
XYZxyz(17.0505, 9.9845, 26.6151)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D338E #348E33
analogous
#60338E #8D338E #8E3361
triadic
#8D338E #8E8D33 #338E8D
tetradic
#8D338E #8E6033 #348E33 #33618E
square
#8D338E #8E6033 #348E33 #33618E
split-complementary
#8D338E #618E33 #338E60
monochromatic
#341334 #602361 #8D338E #BA43BB #CB70CC

Accessibility & contrast

On white

7.01
#8D338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8D338E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D338E
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D338E#FFFFFF#000000##FFFFFF
##8D338E1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#485D8C
Tritanopia (blue-blind)
#913F5C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d338e;
/* rgb */ color: rgb(141, 51, 142);
/* oklch */ color: oklch(48.5% 0.165 327.3);
Tailwind
colors: {
  custom: {
    50: '#b171af',
    500: '#8d338e',
    950: '#000000',
  },
}
SCSS
$custom: #8d338e;
$custom-light: #b171af;
$custom-dark: #000000;
JSON
{
  "hex": "#8d338e",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 299.341,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.16509,
    "h": 327.3
  },
  "luminance": 0.09983
}

Semantic roles & 50–950 ramp

primary
#8D338E
secondary
#6AB469
accent
#D75153
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8D338E

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

Preview Lab → · Contrast checker → · Palette generator →

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