#8B187C#8B187C

#8B187C is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.181 H 334.4°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#8B187C
RGBrgb(139, 24, 124)
HSLhsl(308, 71%, 32%)
HSVhsv(308, 83%, 55%)
CMYKcmyk(0%, 82.7%, 10.8%, 45.5%)
CIE-LABlab(33.13, 56.07, -28.52)
CIE-LCHlch(33.13, 62.91, 333.04°)
OKLaboklab(44.77% 0.1633 -0.0782)
OKLCHoklch(44.77% 0.181 334.4)
XYZxyz(14.6124, 7.5988, 19.7620)
Luminance0.0760 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B187C #188B27
analogous
#61188B #8B187C #8B1843
triadic
#8B187C #7C8B18 #187C8B
tetradic
#8B187C #8B6118 #188B27 #18438B
square
#8B187C #8B6118 #188B27 #18438B
split-complementary
#8B187C #438B18 #188B61
monochromatic
#23061F #570F4D #8B187C #BF21AB #DE3FC9

Accessibility & contrast

On white

8.34
#8B187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#8B187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B187C
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B187C#FFFFFF#000000##FFFFFF
##8B187C1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15437F
Deuteranopia (green-blind)
#435479
Tritanopia (blue-blind)
#92244A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b187c;
/* rgb */ color: rgb(139, 24, 124);
/* oklch */ color: oklch(44.8% 0.181 334.4);
Tailwind
colors: {
  custom: {
    50: '#b165a2',
    500: '#8b187c',
    950: '#000000',
  },
}
SCSS
$custom: #8b187c;
$custom-light: #b165a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b187c",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 307.826,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44771,
    "c": 0.18107,
    "h": 334.4
  },
  "luminance": 0.07597
}

Semantic roles & 50–950 ramp

primary
#8B187C
secondary
#40BE51
accent
#ED523A
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B187C

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

Preview Lab → · Contrast checker → · Palette generator →

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