#8D399B#8D399B

#8D399B is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.0% C 0.168 H 321.7°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8D399B
RGBrgb(141, 57, 155)
HSLhsl(291, 46%, 42%)
HSVhsv(291, 63%, 61%)
CMYKcmyk(9%, 63.2%, 0%, 39.2%)
CIE-LABlab(39.51, 49.80, -37.48)
CIE-LCHlch(39.51, 62.33, 323.03°)
OKLaboklab(49.98% 0.1321 -0.1043)
OKLCHoklch(49.98% 0.168 321.7)
XYZxyz(18.3634, 10.9565, 32.1515)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D399B #479B39
analogous
#5C399B #8D399B #9B3978
triadic
#8D399B #9B8D39 #399B8D
tetradic
#8D399B #9B5C39 #479B39 #39789B
square
#8D399B #9B5C39 #479B39 #39789B
split-complementary
#8D399B #789B39 #399B5C
monochromatic
#3C1842 #64296E #8D399B #B052BF #C47FD0

Accessibility & contrast

On white

6.58
#8D399B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8D399B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D399B
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D399B#FFFFFF#000000##FFFFFF
##8D399B1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579E
Deuteranopia (green-blind)
#446098
Tritanopia (blue-blind)
#8F4865
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8d399b;
/* rgb */ color: rgb(141, 57, 155);
/* oklch */ color: oklch(50.0% 0.168 321.7);
Tailwind
colors: {
  custom: {
    50: '#b175b9',
    500: '#8d399b',
    950: '#000000',
  },
}
SCSS
$custom: #8d399b;
$custom-light: #b175b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d399b",
  "rgb": {
    "r": 141,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 291.429,
    "s": 46.226,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49983,
    "c": 0.16835,
    "h": 321.7
  },
  "luminance": 0.10956
}

Semantic roles & 50–950 ramp

primary
#8D399B
secondary
#80B977
accent
#D65265
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8D399B

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

Preview Lab → · Contrast checker → · Palette generator →

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