#8B1882#8B1882

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

Color values

HEX#8B1882
RGBrgb(139, 24, 130)
HSLhsl(305, 71%, 32%)
HSVhsv(305, 83%, 55%)
CMYKcmyk(0%, 82.7%, 6.5%, 45.5%)
CIE-LABlab(33.47, 57.00, -31.75)
CIE-LCHlch(33.47, 65.25, 330.88°)
OKLaboklab(45.12% 0.1634 -0.0875)
OKLCHoklch(45.12% 0.185 331.8)
XYZxyz(15.0034, 7.7552, 21.8215)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1882 #188B21
analogous
#5B188B #8B1882 #8B1848
triadic
#8B1882 #828B18 #18828B
tetradic
#8B1882 #8B5B18 #188B21 #18488B
square
#8B1882 #8B5B18 #188B21 #18488B
split-complementary
#8B1882 #488B18 #188B5B
monochromatic
#230620 #570F51 #8B1882 #BF21B3 #DE3FD2

Accessibility & contrast

On white

8.23
#8B1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8B1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1882
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1882#FFFFFF#000000##FFFFFF
##8B18821.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4585
Deuteranopia (green-blind)
#40547F
Tritanopia (blue-blind)
#91284E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b1882;
/* rgb */ color: rgb(139, 24, 130);
/* oklch */ color: oklch(45.1% 0.185 331.8);
Tailwind
colors: {
  custom: {
    50: '#b165a7',
    500: '#8b1882',
    950: '#000000',
  },
}
SCSS
$custom: #8b1882;
$custom-light: #b165a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1882",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 304.696,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45118,
    "c": 0.1854,
    "h": 331.8
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#8B1882
secondary
#40BE4A
accent
#ED483A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B1882

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

Preview Lab → · Contrast checker → · Palette generator →

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