#8B1878#8B1878

#8B1878 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.178 H 336.2°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#8B1878
RGBrgb(139, 24, 120)
HSLhsl(310, 71%, 32%)
HSVhsv(310, 83%, 55%)
CMYKcmyk(0%, 82.7%, 13.7%, 45.5%)
CIE-LABlab(32.92, 55.48, -26.34)
CIE-LCHlch(32.92, 61.41, 334.60°)
OKLaboklab(44.55% 0.1631 -0.0719)
OKLCHoklch(44.55% 0.178 336.2)
XYZxyz(14.3645, 7.4997, 18.4567)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1878 #188B2B
analogous
#65188B #8B1878 #8B183F
triadic
#8B1878 #788B18 #18788B
tetradic
#8B1878 #8B6518 #188B2B #183F8B
square
#8B1878 #8B6518 #188B2B #183F8B
split-complementary
#8B1878 #3F8B18 #188B65
monochromatic
#23061E #570F4B #8B1878 #BF21A5 #DE3FC4

Accessibility & contrast

On white

8.40
#8B1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#8B1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1878
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1878#FFFFFF#000000##FFFFFF
##8B18781.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437A
Deuteranopia (green-blind)
#455375
Tritanopia (blue-blind)
#932248
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8b1878;
/* rgb */ color: rgb(139, 24, 120);
/* oklch */ color: oklch(44.5% 0.178 336.2);
Tailwind
colors: {
  custom: {
    50: '#b1659f',
    500: '#8b1878',
    950: '#000000',
  },
}
SCSS
$custom: #8b1878;
$custom-light: #b1659f;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1878",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 309.913,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44547,
    "c": 0.17826,
    "h": 336.2
  },
  "luminance": 0.07498
}

Semantic roles & 50–950 ramp

primary
#8B1878
secondary
#40BE55
accent
#ED583A
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060E
muted
#807A7E

Preview Lab

Preview with #8B1878

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

Preview Lab → · Contrast checker → · Palette generator →

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