#8B337E#8B337E

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

Color values

HEX#8B337E
RGBrgb(139, 51, 126)
HSLhsl(309, 46%, 37%)
HSVhsv(309, 63%, 55%)
CMYKcmyk(0%, 63.3%, 9.4%, 45.5%)
CIE-LABlab(36.68, 46.69, -24.22)
CIE-LCHlch(36.68, 52.60, 332.58°)
OKLaboklab(47.37% 0.135 -0.0661)
OKLCHoklch(47.37% 0.15 333.9)
XYZxyz(15.5973, 9.3642, 20.7206)
Luminance0.0936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B337E #338B40
analogous
#6C338B #8B337E #8B3352
triadic
#8B337E #7E8B33 #337E8B
tetradic
#8B337E #8B6C33 #338B40 #33528B
square
#8B337E #8B6C33 #338B40 #33528B
split-complementary
#8B337E #528B33 #338B6C
monochromatic
#31122D #5E2355 #8B337E #B843A7 #CA6EBC

Accessibility & contrast

On white

7.31
#8B337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8B337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B337E
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B337E#FFFFFF#000000##FFFFFF
##8B337E1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E80
Deuteranopia (green-blind)
#4E5B7C
Tritanopia (blue-blind)
#913953
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b337e;
/* rgb */ color: rgb(139, 51, 126);
/* oklch */ color: oklch(47.4% 0.150 333.9);
Tailwind
colors: {
  custom: {
    50: '#b071a3',
    500: '#8b337e',
    950: '#000000',
  },
}
SCSS
$custom: #8b337e;
$custom-light: #b071a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b337e",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 308.864,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47365,
    "c": 0.15027,
    "h": 333.9
  },
  "luminance": 0.09363
}

Semantic roles & 50–950 ramp

primary
#8B337E
secondary
#68B273
accent
#D66552
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8B337E

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

Preview Lab → · Contrast checker → · Palette generator →

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