#8B338D#8B338D

#8B338D is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.2% C 0.163 H 326.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8B338D
RGBrgb(139, 51, 141)
HSLhsl(299, 47%, 38%)
HSVhsv(299, 64%, 55%)
CMYKcmyk(1.4%, 63.8%, 0%, 44.7%)
CIE-LABlab(37.45, 49.33, -32.26)
CIE-LCHlch(37.45, 58.94, 326.82°)
OKLaboklab(48.18% 0.1365 -0.0892)
OKLCHoklch(48.18% 0.163 326.8)
XYZxyz(16.6387, 9.7808, 26.2056)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B338D #358D33
analogous
#5E338D #8B338D #8D3362
triadic
#8B338D #8D8B33 #338D8B
tetradic
#8B338D #8D5E33 #358D33 #33628D
square
#8B338D #8D5E33 #358D33 #33628D
split-complementary
#8B338D #628D33 #338D5E
monochromatic
#321233 #5F2360 #8B338D #B743BA #C96FCB

Accessibility & contrast

On white

7.10
#8B338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8B338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B338D
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B338D#FFFFFF#000000##FFFFFF
##8B338D1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#475C8B
Tritanopia (blue-blind)
#8F3F5B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b338d;
/* rgb */ color: rgb(139, 51, 141);
/* oklch */ color: oklch(48.2% 0.163 326.8);
Tailwind
colors: {
  custom: {
    50: '#b071af',
    500: '#8b338d',
    950: '#000000',
  },
}
SCSS
$custom: #8b338d;
$custom-light: #b071af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b338d",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 298.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.48176,
    "c": 0.16309,
    "h": 326.8
  },
  "luminance": 0.0978
}

Semantic roles & 50–950 ramp

primary
#8B338D
secondary
#6AB369
accent
#D75154
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8B338D

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

Preview Lab → · Contrast checker → · Palette generator →

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