#8B277A#8B277A

#8B277A is a mid, vivid pink. Relative luminance 0.083; OKLCH L 45.9% C 0.164 H 335.6°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#8B277A
RGBrgb(139, 39, 122)
HSLhsl(310, 56%, 35%)
HSVhsv(310, 72%, 55%)
CMYKcmyk(0%, 71.9%, 12.2%, 45.5%)
CIE-LABlab(34.69, 51.01, -24.82)
CIE-LCHlch(34.69, 56.72, 334.05°)
OKLaboklab(45.86% 0.1491 -0.0677)
OKLCHoklch(45.86% 0.164 335.6)
XYZxyz(14.8860, 8.3464, 19.2356)
Luminance0.0834 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B277A #278B38
analogous
#6A278B #8B277A #8B2748
triadic
#8B277A #7A8B27 #277A8B
tetradic
#8B277A #8B6A27 #278B38 #27488B
square
#8B277A #8B6A27 #278B38 #27488B
split-complementary
#8B277A #488B27 #278B6A
monochromatic
#2B0C26 #5B1A50 #8B277A #BB34A4 #D15BBD

Accessibility & contrast

On white

7.87
#8B277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B277A
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B277A#FFFFFF#000000##FFFFFF
##8B277A1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28487C
Deuteranopia (green-blind)
#4A5778
Tritanopia (blue-blind)
#922E4D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b277a;
/* rgb */ color: rgb(139, 39, 122);
/* oklch */ color: oklch(45.9% 0.164 335.6);
Tailwind
colors: {
  custom: {
    50: '#b06ba0',
    500: '#8b277a',
    950: '#000000',
  },
}
SCSS
$custom: #8b277a;
$custom-light: #b06ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b277a",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 310.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45859,
    "c": 0.16372,
    "h": 335.6
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#8B277A
secondary
#58B668
accent
#DF6248
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B277A

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

Preview Lab → · Contrast checker → · Palette generator →

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