#8B1D7E#8B1D7E

#8B1D7E is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.178 H 333.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#8B1D7E
RGBrgb(139, 29, 126)
HSLhsl(307, 65%, 33%)
HSVhsv(307, 79%, 55%)
CMYKcmyk(0%, 79.1%, 9.4%, 45.5%)
CIE-LABlab(33.72, 55.00, -28.85)
CIE-LCHlch(33.72, 62.10, 332.32°)
OKLaboklab(45.23% 0.1593 -0.0792)
OKLCHoklch(45.23% 0.178 333.6)
XYZxyz(14.8528, 7.8754, 20.4725)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1D7E #1D8B2A
analogous
#611D8B #8B1D7E #8B1D47
triadic
#8B1D7E #7E8B1D #1D7E8B
tetradic
#8B1D7E #8B611D #1D8B2A #1D478B
square
#8B1D7E #8B611D #1D8B2A #1D478B
split-complementary
#8B1D7E #478B1D #1D8B61
monochromatic
#260822 #581250 #8B1D7E #BE28AC #D949C8

Accessibility & contrast

On white

8.16
#8B1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#8B1D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1D7E
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1D7E#FFFFFF#000000##FFFFFF
##8B1D7E1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194581
Deuteranopia (green-blind)
#44557B
Tritanopia (blue-blind)
#92294C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b1d7e;
/* rgb */ color: rgb(139, 29, 126);
/* oklch */ color: oklch(45.2% 0.178 333.6);
Tailwind
colors: {
  custom: {
    50: '#b067a4',
    500: '#8b1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #8b1d7e;
$custom-light: #b067a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1d7e",
  "rgb": {
    "r": 139,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 307.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45227,
    "c": 0.17791,
    "h": 333.6
  },
  "luminance": 0.07874
}

Semantic roles & 50–950 ramp

primary
#8B1D7E
secondary
#49BB56
accent
#E8533F
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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