#8B1A8D#8B1A8D

#8B1A8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.192 H 327.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8B1A8D
RGBrgb(139, 26, 141)
HSLhsl(299, 69%, 33%)
HSVhsv(299, 82%, 55%)
CMYKcmyk(1.4%, 81.6%, 0%, 44.7%)
CIE-LABlab(34.30, 58.26, -37.26)
CIE-LCHlch(34.30, 69.16, 327.40°)
OKLaboklab(45.92% 0.1616 -0.1035)
OKLCHoklch(45.92% 0.192 327.4)
XYZxyz(15.8243, 8.1520, 25.9342)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1A8D #1C8D1A
analogous
#521A8D #8B1A8D #8D1A55
triadic
#8B1A8D #8D8B1A #1A8D8B
tetradic
#8B1A8D #8D521A #1C8D1A #1A558D
square
#8B1A8D #8D521A #1C8D1A #1A558D
split-complementary
#8B1A8D #558D1A #1A8D52
monochromatic
#250726 #581059 #8B1A8D #BE24C1 #DA45DD

Accessibility & contrast

On white

7.98
#8B1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8B1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1A8D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1A8D#FFFFFF#000000##FFFFFF
##8B1A8D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#8F2F54
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b1a8d;
/* rgb */ color: rgb(139, 26, 141);
/* oklch */ color: oklch(45.9% 0.192 327.4);
Tailwind
colors: {
  custom: {
    50: '#b166af',
    500: '#8b1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #8b1a8d;
$custom-light: #b166af;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1a8d",
  "rgb": {
    "r": 139,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 298.957,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45917,
    "c": 0.19196,
    "h": 327.4
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#8B1A8D
secondary
#47BE45
accent
#EC3C3F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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