#8B337F#8B337F

#8B337F is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.4% C 0.151 H 333.4°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8B337F
RGBrgb(139, 51, 127)
HSLhsl(308, 46%, 37%)
HSVhsv(308, 63%, 55%)
CMYKcmyk(0%, 63.3%, 8.6%, 45.5%)
CIE-LABlab(36.72, 46.86, -24.76)
CIE-LCHlch(36.72, 53.00, 332.15°)
OKLaboklab(47.42% 0.1351 -0.0676)
OKLCHoklch(47.42% 0.151 333.4)
XYZxyz(15.6621, 9.3901, 21.0621)
Luminance0.0939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B337F #338B3F
analogous
#6B338B #8B337F #8B3353
triadic
#8B337F #7F8B33 #337F8B
tetradic
#8B337F #8B6B33 #338B3F #33538B
square
#8B337F #8B6B33 #338B3F #33538B
split-complementary
#8B337F #538B33 #338B6B
monochromatic
#31122D #5E2356 #8B337F #B843A8 #CA6EBD

Accessibility & contrast

On white

7.30
#8B337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8B337F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B337F
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B337F#FFFFFF#000000##FFFFFF
##8B337F1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314E81
Deuteranopia (green-blind)
#4D5B7D
Tritanopia (blue-blind)
#913A54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b337f;
/* rgb */ color: rgb(139, 51, 127);
/* oklch */ color: oklch(47.4% 0.151 333.4);
Tailwind
colors: {
  custom: {
    50: '#b071a4',
    500: '#8b337f',
    950: '#000000',
  },
}
SCSS
$custom: #8b337f;
$custom-light: #b071a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b337f",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 308.182,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47416,
    "c": 0.15109,
    "h": 333.4
  },
  "luminance": 0.09389
}

Semantic roles & 50–950 ramp

primary
#8B337F
secondary
#68B272
accent
#D66452
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8B337F

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

Preview Lab → · Contrast checker → · Palette generator →

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