#8B287E#8B287E

#8B287E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.166 H 333.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#8B287E
RGBrgb(139, 40, 126)
HSLhsl(308, 55%, 35%)
HSVhsv(308, 71%, 55%)
CMYKcmyk(0%, 71.2%, 9.4%, 45.5%)
CIE-LABlab(35.03, 51.27, -26.79)
CIE-LCHlch(35.03, 57.85, 332.41°)
OKLaboklab(46.17% 0.1484 -0.0733)
OKLCHoklch(46.17% 0.166 333.7)
XYZxyz(15.1722, 8.5142, 20.5789)
Luminance0.0851 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B287E #288B35
analogous
#67288B #8B287E #8B284C
triadic
#8B287E #7E8B28 #287E8B
tetradic
#8B287E #8B6728 #288B35 #284C8B
square
#8B287E #8B6728 #288B35 #284C8B
split-complementary
#8B287E #4C8B28 #288B67
monochromatic
#2C0D28 #5B1A53 #8B287E #BB36A9 #D05DC1

Accessibility & contrast

On white

7.77
#8B287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8B287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B287E
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B287E#FFFFFF#000000##FFFFFF
##8B287E1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#48587C
Tritanopia (blue-blind)
#913150
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b287e;
/* rgb */ color: rgb(139, 40, 126);
/* oklch */ color: oklch(46.2% 0.166 333.7);
Tailwind
colors: {
  custom: {
    50: '#b06ba3',
    500: '#8b287e',
    950: '#000000',
  },
}
SCSS
$custom: #8b287e;
$custom-light: #b06ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b287e",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 307.879,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4617,
    "c": 0.16551,
    "h": 333.7
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#8B287E
secondary
#59B665
accent
#DF5D49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8B287E

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

Preview Lab → · Contrast checker → · Palette generator →

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