#8B2A87#8B2A87

#8B2A87 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.170 H 329.6°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8B2A87
RGBrgb(139, 42, 135)
HSLhsl(302, 54%, 35%)
HSVhsv(302, 70%, 55%)
CMYKcmyk(0%, 69.8%, 2.9%, 45.5%)
CIE-LABlab(35.78, 52.01, -31.20)
CIE-LCHlch(35.78, 60.64, 329.04°)
OKLaboklab(46.87% 0.1468 -0.086)
OKLCHoklch(46.87% 0.17 329.6)
XYZxyz(15.8485, 8.8953, 23.7992)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A87 #2A8B2E
analogous
#5E2A8B #8B2A87 #8B2A56
triadic
#8B2A87 #878B2A #2A878B
tetradic
#8B2A87 #8B5E2A #2A8B2E #2A568B
square
#8B2A87 #8B5E2A #2A8B2E #2A568B
split-complementary
#8B2A87 #568B2A #2A8B5E
monochromatic
#2D0E2C #5C1C59 #8B2A87 #BA38B5 #CF60CA

Accessibility & contrast

On white

7.56
#8B2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8B2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2A87
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A87#FFFFFF#000000##FFFFFF
##8B2A871.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8A
Deuteranopia (green-blind)
#455985
Tritanopia (blue-blind)
#903655
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2a87;
/* rgb */ color: rgb(139, 42, 135);
/* oklch */ color: oklch(46.9% 0.170 329.6);
Tailwind
colors: {
  custom: {
    50: '#b06daa',
    500: '#8b2a87',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a87;
$custom-light: #b06daa;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a87",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 302.474,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46867,
    "c": 0.17015,
    "h": 329.6
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#8B2A87
secondary
#5CB560
accent
#DD514B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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