#8B277C#8B277C

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

Color values

HEX#8B277C
RGBrgb(139, 39, 124)
HSLhsl(309, 56%, 35%)
HSVhsv(309, 72%, 55%)
CMYKcmyk(0%, 71.9%, 10.8%, 45.5%)
CIE-LABlab(34.80, 51.32, -25.91)
CIE-LCHlch(34.80, 57.49, 333.21°)
OKLaboklab(45.97% 0.1493 -0.0708)
OKLCHoklch(45.97% 0.165 334.6)
XYZxyz(15.0112, 8.3965, 19.8950)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B277C #278B36
analogous
#68278B #8B277C #8B274A
triadic
#8B277C #7C8B27 #277C8B
tetradic
#8B277C #8B6827 #278B36 #274A8B
square
#8B277C #8B6827 #278B36 #274A8B
split-complementary
#8B277C #4A8B27 #278B68
monochromatic
#2B0C27 #5B1A51 #8B277C #BB34A7 #D15BBF

Accessibility & contrast

On white

7.84
#8B277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B277C
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B277C#FFFFFF#000000##FFFFFF
##8B277C1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487E
Deuteranopia (green-blind)
#49577A
Tritanopia (blue-blind)
#922F4E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b277c;
/* rgb */ color: rgb(139, 39, 124);
/* oklch */ color: oklch(46.0% 0.165 334.6);
Tailwind
colors: {
  custom: {
    50: '#b06ba2',
    500: '#8b277c',
    950: '#000000',
  },
}
SCSS
$custom: #8b277c;
$custom-light: #b06ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b277c",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 309,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.45966,
    "c": 0.16523,
    "h": 334.6
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#8B277C
secondary
#58B666
accent
#DF5F48
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B277C

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

Preview Lab → · Contrast checker → · Palette generator →

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