#8B1A7C#8B1A7C

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

Color values

HEX#8B1A7C
RGBrgb(139, 26, 124)
HSLhsl(308, 68%, 32%)
HSVhsv(308, 81%, 55%)
CMYKcmyk(0%, 81.3%, 10.8%, 45.5%)
CIE-LABlab(33.32, 55.54, -28.24)
CIE-LCHlch(33.32, 62.31, 333.05°)
OKLaboklab(44.9% 0.1617 -0.0774)
OKLCHoklch(44.9% 0.179 334.4)
XYZxyz(14.6551, 7.6843, 19.7763)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1A7C #1A8B29
analogous
#621A8B #8B1A7C #8B1A43
triadic
#8B1A7C #7C8B1A #1A7C8B
tetradic
#8B1A7C #8B621A #1A8B29 #1A438B
square
#8B1A7C #8B621A #1A8B29 #1A438B
split-complementary
#8B1A7C #438B1A #1A8B62
monochromatic
#240720 #57104E #8B1A7C #BF24AA #DC43C8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B1A7C#FFFFFF#000000##FFFFFF
##8B1A7C1.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)
#18447F
Deuteranopia (green-blind)
#445479
Tritanopia (blue-blind)
#92264B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b1a7c;
/* rgb */ color: rgb(139, 26, 124);
/* oklch */ color: oklch(44.9% 0.179 334.4);
Tailwind
colors: {
  custom: {
    50: '#b166a2',
    500: '#8b1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #8b1a7c;
$custom-light: #b166a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1a7c",
  "rgb": {
    "r": 139,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 307.965,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.44902,
    "c": 0.1793,
    "h": 334.4
  },
  "luminance": 0.07683
}

Semantic roles & 50–950 ramp

primary
#8B1A7C
secondary
#44BD54
accent
#EB543C
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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