#8B2387#8B2387

#8B2387 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.178 H 329.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8B2387
RGBrgb(139, 35, 135)
HSLhsl(302, 60%, 34%)
HSVhsv(302, 75%, 55%)
CMYKcmyk(0%, 74.8%, 2.9%, 45.5%)
CIE-LABlab(34.89, 54.55, -32.61)
CIE-LCHlch(34.89, 63.55, 329.13°)
OKLaboklab(46.22% 0.1541 -0.0901)
OKLCHoklch(46.22% 0.178 329.7)
XYZxyz(15.6216, 8.4415, 23.7236)
Luminance0.0844 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2387 #238B27
analogous
#5B238B #8B2387 #8B2353
triadic
#8B2387 #878B23 #23878B
tetradic
#8B2387 #8B5B23 #238B27 #23538B
square
#8B2387 #8B5B23 #238B27 #23538B
split-complementary
#8B2387 #538B23 #238B5B
monochromatic
#290A28 #5A1758 #8B2387 #BC2FB6 #D454CF

Accessibility & contrast

On white

7.81
#8B2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8B2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2387
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2387#FFFFFF#000000##FFFFFF
##8B23871.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15498A
Deuteranopia (green-blind)
#425784
Tritanopia (blue-blind)
#903153
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b2387;
/* rgb */ color: rgb(139, 35, 135);
/* oklch */ color: oklch(46.2% 0.178 329.7);
Tailwind
colors: {
  custom: {
    50: '#b069aa',
    500: '#8b2387',
    950: '#000000',
  },
}
SCSS
$custom: #8b2387;
$custom-light: #b069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2387",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 302.308,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.46223,
    "c": 0.17848,
    "h": 329.7
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#8B2387
secondary
#52B856
accent
#E34B45
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B2387

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

Preview Lab → · Contrast checker → · Palette generator →

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