#8B277E#8B277E

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

Color values

HEX#8B277E
RGBrgb(139, 39, 126)
HSLhsl(308, 56%, 35%)
HSVhsv(308, 72%, 55%)
CMYKcmyk(0%, 71.9%, 9.4%, 45.5%)
CIE-LABlab(34.90, 51.64, -27.00)
CIE-LCHlch(34.90, 58.28, 332.40°)
OKLaboklab(46.07% 0.1495 -0.0739)
OKLCHoklch(46.07% 0.167 333.7)
XYZxyz(15.1390, 8.4476, 20.5678)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B277E #278B34
analogous
#66278B #8B277E #8B274C
triadic
#8B277E #7E8B27 #277E8B
tetradic
#8B277E #8B6627 #278B34 #274C8B
square
#8B277E #8B6627 #278B34 #274C8B
split-complementary
#8B277E #4C8B27 #278B66
monochromatic
#2B0C27 #5B1A53 #8B277E #BB34A9 #D15BC2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B277E#FFFFFF#000000##FFFFFF
##8B277E1.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)
#244980
Deuteranopia (green-blind)
#48577C
Tritanopia (blue-blind)
#92304F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b277e;
/* rgb */ color: rgb(139, 39, 126);
/* oklch */ color: oklch(46.1% 0.167 333.7);
Tailwind
colors: {
  custom: {
    50: '#b06ba3',
    500: '#8b277e',
    950: '#000000',
  },
}
SCSS
$custom: #8b277e;
$custom-light: #b06ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b277e",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 307.8,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46073,
    "c": 0.16676,
    "h": 333.7
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#8B277E
secondary
#58B664
accent
#DF5C48
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B277E

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

Preview Lab → · Contrast checker → · Palette generator →

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