#8B277D#8B277D

#8B277D is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.166 H 334.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#8B277D
RGBrgb(139, 39, 125)
HSLhsl(308, 56%, 35%)
HSVhsv(308, 72%, 55%)
CMYKcmyk(0%, 71.9%, 10.1%, 45.5%)
CIE-LABlab(34.85, 51.48, -26.46)
CIE-LCHlch(34.85, 57.88, 332.80°)
OKLaboklab(46.02% 0.1494 -0.0724)
OKLCHoklch(46.02% 0.166 334.2)
XYZxyz(15.0748, 8.4219, 20.2297)
Luminance0.0842 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B277D #278B35
analogous
#67278B #8B277D #8B274B
triadic
#8B277D #7D8B27 #277D8B
tetradic
#8B277D #8B6727 #278B35 #274B8B
square
#8B277D #8B6727 #278B35 #274B8B
split-complementary
#8B277D #4B8B27 #278B67
monochromatic
#2B0C27 #5B1A52 #8B277D #BB34A8 #D15BC1

Accessibility & contrast

On white

7.82
#8B277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#8B277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B277D
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B277D#FFFFFF#000000##FFFFFF
##8B277D1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25497F
Deuteranopia (green-blind)
#48577B
Tritanopia (blue-blind)
#922F4F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b277d;
/* rgb */ color: rgb(139, 39, 125);
/* oklch */ color: oklch(46.0% 0.166 334.2);
Tailwind
colors: {
  custom: {
    50: '#b06ba3',
    500: '#8b277d',
    950: '#000000',
  },
}
SCSS
$custom: #8b277d;
$custom-light: #b06ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b277d",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 308.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46019,
    "c": 0.16599,
    "h": 334.2
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#8B277D
secondary
#58B665
accent
#DF5D48
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B277D

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

Preview Lab → · Contrast checker → · Palette generator →

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