#8B1782#8B1782

#8B1782 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.186 H 331.8°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#8B1782
RGBrgb(139, 23, 130)
HSLhsl(305, 72%, 32%)
HSVhsv(305, 83%, 55%)
CMYKcmyk(0%, 83.5%, 6.5%, 45.5%)
CIE-LABlab(33.38, 57.25, -31.89)
CIE-LCHlch(33.38, 65.53, 330.88°)
OKLaboklab(45.06% 0.1642 -0.0879)
OKLCHoklch(45.06% 0.186 331.8)
XYZxyz(14.9832, 7.7147, 21.8147)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1782 #178B20
analogous
#5A178B #8B1782 #8B1748
triadic
#8B1782 #828B17 #17828B
tetradic
#8B1782 #8B5A17 #178B20 #17488B
square
#8B1782 #8B5A17 #178B20 #17488B
split-complementary
#8B1782 #488B17 #178B5A
monochromatic
#220620 #560E51 #8B1782 #C020B3 #DF3DD2

Accessibility & contrast

On white

8.26
#8B1782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8B1782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1782
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1782#FFFFFF#000000##FFFFFF
##8B17821.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094485
Deuteranopia (green-blind)
#40547F
Tritanopia (blue-blind)
#91274D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b1782;
/* rgb */ color: rgb(139, 23, 130);
/* oklch */ color: oklch(45.1% 0.186 331.8);
Tailwind
colors: {
  custom: {
    50: '#b165a7',
    500: '#8b1782',
    950: '#000000',
  },
}
SCSS
$custom: #8b1782;
$custom-light: #b165a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1782",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 304.655,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.45056,
    "c": 0.18622,
    "h": 331.8
  },
  "luminance": 0.07713
}

Semantic roles & 50–950 ramp

primary
#8B1782
secondary
#3FBF49
accent
#EE4739
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B1782

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

Preview Lab → · Contrast checker → · Palette generator →

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