#8B187E#8B187E

#8B187E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.182 H 333.5°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#8B187E
RGBrgb(139, 24, 126)
HSLhsl(307, 71%, 32%)
HSVhsv(307, 83%, 55%)
CMYKcmyk(0%, 82.7%, 9.4%, 45.5%)
CIE-LABlab(33.24, 56.38, -29.61)
CIE-LCHlch(33.24, 63.68, 332.29°)
OKLaboklab(44.89% 0.1634 -0.0813)
OKLCHoklch(44.89% 0.183 333.5)
XYZxyz(14.7401, 7.6499, 20.4349)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B187E #188B25
analogous
#5F188B #8B187E #8B1844
triadic
#8B187E #7E8B18 #187E8B
tetradic
#8B187E #8B5F18 #188B25 #18448B
square
#8B187E #8B5F18 #188B25 #18448B
split-complementary
#8B187E #448B18 #188B5F
monochromatic
#23061F #570F4F #8B187E #BF21AD #DE3FCC

Accessibility & contrast

On white

8.30
#8B187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8B187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B187E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B187E#FFFFFF#000000##FFFFFF
##8B187E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124481
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#92264B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8b187e;
/* rgb */ color: rgb(139, 24, 126);
/* oklch */ color: oklch(44.9% 0.182 333.5);
Tailwind
colors: {
  custom: {
    50: '#b165a4',
    500: '#8b187e',
    950: '#000000',
  },
}
SCSS
$custom: #8b187e;
$custom-light: #b165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b187e",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 306.783,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.44885,
    "c": 0.1825,
    "h": 333.5
  },
  "luminance": 0.07649
}

Semantic roles & 50–950 ramp

primary
#8B187E
secondary
#40BE4F
accent
#ED4F3A
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8B187E

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

Preview Lab → · Contrast checker → · Palette generator →

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