#8B308E#8B308E

#8B308E is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.9% C 0.168 H 326.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8B308E
RGBrgb(139, 48, 142)
HSLhsl(298, 49%, 37%)
HSVhsv(298, 66%, 56%)
CMYKcmyk(2.1%, 66.2%, 0%, 44.3%)
CIE-LABlab(37.04, 50.81, -33.52)
CIE-LCHlch(37.04, 60.87, 326.59°)
OKLaboklab(47.9% 0.1402 -0.0928)
OKLCHoklch(47.9% 0.168 326.5)
XYZxyz(16.5866, 9.5569, 26.5570)
Luminance0.0956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B308E #338E30
analogous
#5C308E #8B308E #8E3062
triadic
#8B308E #8E8B30 #308E8B
tetradic
#8B308E #8E5C30 #338E30 #30628E
square
#8B308E #8E5C30 #338E30 #30628E
split-complementary
#8B308E #628E30 #308E5C
monochromatic
#311133 #5E2160 #8B308E #B83FBC #CA6BCD

Accessibility & contrast

On white

7.21
#8B308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8B308E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B308E
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B308E#FFFFFF#000000##FFFFFF
##8B308E1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#445B8C
Tritanopia (blue-blind)
#8F3D5B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b308e;
/* rgb */ color: rgb(139, 48, 142);
/* oklch */ color: oklch(47.9% 0.168 326.5);
Tailwind
colors: {
  custom: {
    50: '#b070af',
    500: '#8b308e',
    950: '#000000',
  },
}
SCSS
$custom: #8b308e;
$custom-light: #b070af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b308e",
  "rgb": {
    "r": 139,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 298.085,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47896,
    "c": 0.16816,
    "h": 326.5
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#8B308E
secondary
#68B465
accent
#D94F53
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8B308E

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

Preview Lab → · Contrast checker → · Palette generator →

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