#8B2187#8B2187

#8B2187 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.181 H 329.7°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#8B2187
RGBrgb(139, 33, 135)
HSLhsl(302, 62%, 34%)
HSVhsv(302, 76%, 55%)
CMYKcmyk(0%, 76.3%, 2.9%, 45.5%)
CIE-LABlab(34.66, 55.21, -32.98)
CIE-LCHlch(34.66, 64.31, 329.15°)
OKLaboklab(46.06% 0.156 -0.0911)
OKLCHoklch(46.06% 0.181 329.7)
XYZxyz(15.5644, 8.3272, 23.7045)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2187 #218B25
analogous
#5A218B #8B2187 #8B2152
triadic
#8B2187 #878B21 #21878B
tetradic
#8B2187 #8B5A21 #218B25 #21528B
square
#8B2187 #8B5A21 #218B25 #21528B
split-complementary
#8B2187 #528B21 #218B5A
monochromatic
#280A27 #5A1557 #8B2187 #BC2DB7 #D651D1

Accessibility & contrast

On white

7.88
#8B2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8B2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2187
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2187#FFFFFF#000000##FFFFFF
##8B21871.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#415684
Tritanopia (blue-blind)
#903052
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8b2187;
/* rgb */ color: rgb(139, 33, 135);
/* oklch */ color: oklch(46.1% 0.181 329.7);
Tailwind
colors: {
  custom: {
    50: '#b069aa',
    500: '#8b2187',
    950: '#000000',
  },
}
SCSS
$custom: #8b2187;
$custom-light: #b069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2187",
  "rgb": {
    "r": 139,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 302.264,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.46057,
    "c": 0.18064,
    "h": 329.7
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#8B2187
secondary
#4FB953
accent
#E54943
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B2187

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

Preview Lab → · Contrast checker → · Palette generator →

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