#8B1C7E#8B1C7E

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

Color values

HEX#8B1C7E
RGBrgb(139, 28, 126)
HSLhsl(307, 66%, 33%)
HSVhsv(307, 80%, 55%)
CMYKcmyk(0%, 79.9%, 9.4%, 45.5%)
CIE-LABlab(33.62, 55.29, -29.01)
CIE-LCHlch(33.62, 62.44, 332.31°)
OKLaboklab(45.15% 0.1602 -0.0796)
OKLCHoklch(45.15% 0.179 333.6)
XYZxyz(14.8287, 7.8271, 20.4644)
Luminance0.0783 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1C7E #1C8B29
analogous
#601C8B #8B1C7E #8B1C46
triadic
#8B1C7E #7E8B1C #1C7E8B
tetradic
#8B1C7E #8B601C #1C8B29 #1C468B
square
#8B1C7E #8B601C #1C8B29 #1C468B
split-complementary
#8B1C7E #468B1C #1C8B60
monochromatic
#250722 #581250 #8B1C7E #BE26AC #DA47C9

Accessibility & contrast

On white

8.19
#8B1C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B1C7E
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1C7E#FFFFFF#000000##FFFFFF
##8B1C7E1.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b1c7e;
/* rgb */ color: rgb(139, 28, 126);
/* oklch */ color: oklch(45.2% 0.179 333.6);
Tailwind
colors: {
  custom: {
    50: '#b166a4',
    500: '#8b1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #8b1c7e;
$custom-light: #b166a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1c7e",
  "rgb": {
    "r": 139,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 307.027,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.45154,
    "c": 0.17888,
    "h": 333.6
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

primary
#8B1C7E
secondary
#47BC55
accent
#E9523E
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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