#8B1781#8B1781

#8B1781 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.185 H 332.2°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#8B1781
RGBrgb(139, 23, 129)
HSLhsl(305, 72%, 32%)
HSVhsv(305, 83%, 55%)
CMYKcmyk(0%, 83.5%, 7.2%, 45.5%)
CIE-LABlab(33.32, 57.09, -31.35)
CIE-LCHlch(33.32, 65.14, 331.23°)
OKLaboklab(45% 0.1642 -0.0864)
OKLCHoklch(45% 0.185 332.2)
XYZxyz(14.9164, 7.6880, 21.4630)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1781 #178B21
analogous
#5B178B #8B1781 #8B1747
triadic
#8B1781 #818B17 #17818B
tetradic
#8B1781 #8B5B17 #178B21 #17478B
square
#8B1781 #8B5B17 #178B21 #17478B
split-complementary
#8B1781 #478B17 #178B5B
monochromatic
#220620 #560E50 #8B1781 #C020B2 #DF3DD1

Accessibility & contrast

On white

8.28
#8B1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B1781
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1781#FFFFFF#000000##FFFFFF
##8B17811.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4484
Deuteranopia (green-blind)
#41547E
Tritanopia (blue-blind)
#91274D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b1781;
/* rgb */ color: rgb(139, 23, 129);
/* oklch */ color: oklch(45.0% 0.185 332.2);
Tailwind
colors: {
  custom: {
    50: '#b165a6',
    500: '#8b1781',
    950: '#000000',
  },
}
SCSS
$custom: #8b1781;
$custom-light: #b165a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1781",
  "rgb": {
    "r": 139,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 305.172,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.44997,
    "c": 0.18549,
    "h": 332.2
  },
  "luminance": 0.07687
}

Semantic roles & 50–950 ramp

primary
#8B1781
secondary
#3FBF4A
accent
#EE4939
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B1781

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

Preview Lab → · Contrast checker → · Palette generator →

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