#8B277B#8B277B

#8B277B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.164 H 335.1°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8B277B
RGBrgb(139, 39, 123)
HSLhsl(310, 56%, 35%)
HSVhsv(310, 72%, 55%)
CMYKcmyk(0%, 71.9%, 11.5%, 45.5%)
CIE-LABlab(34.74, 51.16, -25.37)
CIE-LCHlch(34.74, 57.11, 333.63°)
OKLaboklab(45.91% 0.1492 -0.0692)
OKLCHoklch(45.91% 0.164 335.1)
XYZxyz(14.9483, 8.3714, 19.5636)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B277B #278B37
analogous
#69278B #8B277B #8B2749
triadic
#8B277B #7B8B27 #277B8B
tetradic
#8B277B #8B6927 #278B37 #27498B
square
#8B277B #8B6927 #278B37 #27498B
split-complementary
#8B277B #498B27 #278B69
monochromatic
#2B0C26 #5B1A51 #8B277B #BB34A5 #D15BBE

Accessibility & contrast

On white

7.85
#8B277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B277B
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B277B#FFFFFF#000000##FFFFFF
##8B277B1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27487D
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#922F4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b277b;
/* rgb */ color: rgb(139, 39, 123);
/* oklch */ color: oklch(45.9% 0.164 335.1);
Tailwind
colors: {
  custom: {
    50: '#b06ba1',
    500: '#8b277b',
    950: '#000000',
  },
}
SCSS
$custom: #8b277b;
$custom-light: #b06ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b277b",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 309.6,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45912,
    "c": 0.16447,
    "h": 335.1
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#8B277B
secondary
#58B667
accent
#DF6148
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8B277B

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

Preview Lab → · Contrast checker → · Palette generator →

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