#8B338E#8B338E

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

Color values

HEX#8B338E
RGBrgb(139, 51, 142)
HSLhsl(298, 47%, 38%)
HSVhsv(298, 64%, 56%)
CMYKcmyk(2.1%, 64.1%, 0%, 44.3%)
CIE-LABlab(37.50, 49.52, -32.78)
CIE-LCHlch(37.50, 59.38, 326.49°)
OKLaboklab(48.23% 0.1366 -0.0907)
OKLCHoklch(48.23% 0.164 326.4)
XYZxyz(16.7135, 9.8107, 26.5993)
Luminance0.0981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B338E #368E33
analogous
#5D338E #8B338E #8E3363
triadic
#8B338E #8E8B33 #338E8B
tetradic
#8B338E #8E5D33 #368E33 #33638E
square
#8B338E #8E5D33 #368E33 #33638E
split-complementary
#8B338E #638E33 #338E5D
monochromatic
#331334 #5F2361 #8B338E #B743BB #C970CC

Accessibility & contrast

On white

7.09
#8B338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B338E
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B338E#FFFFFF#000000##FFFFFF
##8B338E1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#465C8C
Tritanopia (blue-blind)
#8F405C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b338e;
/* rgb */ color: rgb(139, 51, 142);
/* oklch */ color: oklch(48.2% 0.164 326.4);
Tailwind
colors: {
  custom: {
    50: '#b071af',
    500: '#8b338e',
    950: '#000000',
  },
}
SCSS
$custom: #8b338e;
$custom-light: #b071af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b338e",
  "rgb": {
    "r": 139,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 298.022,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48233,
    "c": 0.16398,
    "h": 326.4
  },
  "luminance": 0.0981
}

Semantic roles & 50–950 ramp

primary
#8B338E
secondary
#6CB469
accent
#D75155
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8B338E

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

Preview Lab → · Contrast checker → · Palette generator →

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