#8B278B#8B278B

#8B278B is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.8% C 0.177 H 328.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#8B278B
RGBrgb(139, 39, 139)
HSLhsl(300, 56%, 35%)
HSVhsv(300, 72%, 55%)
CMYKcmyk(0%, 71.9%, 0%, 45.5%)
CIE-LABlab(35.61, 53.83, -33.94)
CIE-LCHlch(35.61, 63.63, 327.77°)
OKLaboklab(46.81% 0.1501 -0.094)
OKLCHoklch(46.81% 0.177 328)
XYZxyz(16.0330, 8.8052, 25.2762)
Luminance0.0880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B278B #278B27
analogous
#59278B #8B278B #8B2759
triadic
#8B278B #8B8B27 #278B8B
tetradic
#8B278B #8B5927 #278B27 #27598B
square
#8B278B #8B5927 #278B27 #27598B
split-complementary
#8B278B #598B27 #278B59
monochromatic
#2B0C2B #5B1A5B #8B278B #BB34BB #D15BD1

Accessibility & contrast

On white

7.61
#8B278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8B278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B278B
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B278B#FFFFFF#000000##FFFFFF
##8B278B1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164B8E
Deuteranopia (green-blind)
#415888
Tritanopia (blue-blind)
#8F3656
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b278b;
/* rgb */ color: rgb(139, 39, 139);
/* oklch */ color: oklch(46.8% 0.177 328.0);
Tailwind
colors: {
  custom: {
    50: '#b06bad',
    500: '#8b278b',
    950: '#000000',
  },
}
SCSS
$custom: #8b278b;
$custom-light: #b06bad;
$custom-dark: #000000;
JSON
{
  "hex": "#8b278b",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 300,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46813,
    "c": 0.17712,
    "h": 328
  },
  "luminance": 0.08804
}

Semantic roles & 50–950 ramp

primary
#8B278B
secondary
#58B658
accent
#DF4848
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8B278B

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

Preview Lab → · Contrast checker → · Palette generator →

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