#8D338C#8D338C

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

Color values

HEX#8D338C
RGBrgb(141, 51, 140)
HSLhsl(301, 47%, 38%)
HSVhsv(301, 64%, 55%)
CMYKcmyk(0%, 63.8%, 0.7%, 44.7%)
CIE-LABlab(37.71, 49.67, -31.21)
CIE-LCHlch(37.71, 58.66, 327.86°)
OKLaboklab(48.41% 0.1388 -0.0861)
OKLCHoklch(48.41% 0.163 328.2)
XYZxyz(16.9017, 9.9250, 25.8313)
Luminance0.0992 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D338C #338D34
analogous
#61338D #8D338C #8D335F
triadic
#8D338C #8C8D33 #338C8D
tetradic
#8D338C #8D6133 #338D34 #335F8D
square
#8D338C #8D6133 #338D34 #335F8D
split-complementary
#8D338C #5F8D33 #338D61
monochromatic
#331233 #60235F #8D338C #BA43B9 #CB6FCA

Accessibility & contrast

On white

7.04
#8D338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8D338C
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D338C#FFFFFF#000000##FFFFFF
##8D338C1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#495D8A
Tritanopia (blue-blind)
#913E5B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8d338c;
/* rgb */ color: rgb(141, 51, 140);
/* oklch */ color: oklch(48.4% 0.163 328.2);
Tailwind
colors: {
  custom: {
    50: '#b171ae',
    500: '#8d338c',
    950: '#000000',
  },
}
SCSS
$custom: #8d338c;
$custom-light: #b171ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8d338c",
  "rgb": {
    "r": 141,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 300.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48411,
    "c": 0.16336,
    "h": 328.2
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D338C

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

Preview Lab → · Contrast checker → · Palette generator →

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