#8B1A7D#8B1A7D

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

Color values

HEX#8B1A7D
RGBrgb(139, 26, 125)
HSLhsl(307, 68%, 32%)
HSVhsv(307, 81%, 55%)
CMYKcmyk(0%, 81.3%, 10.1%, 45.5%)
CIE-LABlab(33.37, 55.70, -28.78)
CIE-LCHlch(33.37, 62.69, 332.68°)
OKLaboklab(44.96% 0.1618 -0.0789)
OKLCHoklch(44.96% 0.18 334)
XYZxyz(14.7187, 7.7097, 20.1110)
Luminance0.0771 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1A7D #1A8B28
analogous
#611A8B #8B1A7D #8B1A44
triadic
#8B1A7D #7D8B1A #1A7D8B
tetradic
#8B1A7D #8B611A #1A8B28 #1A448B
square
#8B1A7D #8B611A #1A8B28 #1A448B
split-complementary
#8B1A7D #448B1A #1A8B61
monochromatic
#240720 #57104F #8B1A7D #BF24AB #DC43C9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B1A7D#FFFFFF#000000##FFFFFF
##8B1A7D1.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)
#164480
Deuteranopia (green-blind)
#44547A
Tritanopia (blue-blind)
#92264B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b1a7d;
/* rgb */ color: rgb(139, 26, 125);
/* oklch */ color: oklch(45.0% 0.180 334.0);
Tailwind
colors: {
  custom: {
    50: '#b166a3',
    500: '#8b1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #8b1a7d;
$custom-light: #b166a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1a7d",
  "rgb": {
    "r": 139,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 307.434,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44958,
    "c": 0.18002,
    "h": 334
  },
  "luminance": 0.07708
}

Semantic roles & 50–950 ramp

primary
#8B1A7D
secondary
#44BD53
accent
#EB523C
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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