#8B1B7E#8B1B7E

#8B1B7E is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.180 H 333.6°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#8B1B7E
RGBrgb(139, 27, 126)
HSLhsl(307, 67%, 33%)
HSVhsv(307, 81%, 55%)
CMYKcmyk(0%, 80.6%, 9.4%, 45.5%)
CIE-LABlab(33.52, 55.57, -29.17)
CIE-LCHlch(33.52, 62.76, 332.31°)
OKLaboklab(45.08% 0.161 -0.0801)
OKLCHoklch(45.08% 0.18 333.6)
XYZxyz(14.8054, 7.7805, 20.4567)
Luminance0.0778 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1B7E #1B8B28
analogous
#601B8B #8B1B7E #8B1B46
triadic
#8B1B7E #7E8B1B #1B7E8B
tetradic
#8B1B7E #8B601B #1B8B28 #1B468B
square
#8B1B7E #8B601B #1B8B28 #1B468B
split-complementary
#8B1B7E #468B1B #1B8B60
monochromatic
#250721 #581150 #8B1B7E #BE25AC #DB45CA

Accessibility & contrast

On white

8.22
#8B1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8B1B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1B7E
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1B7E#FFFFFF#000000##FFFFFF
##8B1B7E1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164581
Deuteranopia (green-blind)
#43547B
Tritanopia (blue-blind)
#92284C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8b1b7e;
/* rgb */ color: rgb(139, 27, 126);
/* oklch */ color: oklch(45.1% 0.180 333.6);
Tailwind
colors: {
  custom: {
    50: '#b166a4',
    500: '#8b1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #8b1b7e;
$custom-light: #b166a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1b7e",
  "rgb": {
    "r": 139,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 306.964,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.45084,
    "c": 0.17982,
    "h": 333.6
  },
  "luminance": 0.07779
}

Semantic roles & 50–950 ramp

primary
#8B1B7E
secondary
#45BC53
accent
#EA523D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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