#8B2791#8B2791

#8B2791 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.182 H 325.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#8B2791
RGBrgb(139, 39, 145)
HSLhsl(297, 58%, 36%)
HSVhsv(297, 73%, 57%)
CMYKcmyk(4.1%, 73.1%, 0%, 43.1%)
CIE-LABlab(35.96, 54.88, -37.07)
CIE-LCHlch(35.96, 66.23, 325.96°)
OKLaboklab(47.18% 0.1501 -0.1031)
OKLCHoklch(47.18% 0.182 325.5)
XYZxyz(16.4835, 8.9854, 27.6487)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2791 #2D9127
analogous
#562791 #8B2791 #912762
triadic
#8B2791 #918B27 #27918B
tetradic
#8B2791 #915627 #2D9127 #276291
square
#8B2791 #915627 #2D9127 #276291
split-complementary
#8B2791 #629127 #279156
monochromatic
#2F0D31 #5D1A61 #8B2791 #B934C1 #CD5FD4

Accessibility & contrast

On white

7.51
#8B2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8B2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2791
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2791#FFFFFF#000000##FFFFFF
##8B27911.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094D94
Deuteranopia (green-blind)
#3E598E
Tritanopia (blue-blind)
#8E395A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b2791;
/* rgb */ color: rgb(139, 39, 145);
/* oklch */ color: oklch(47.2% 0.182 325.5);
Tailwind
colors: {
  custom: {
    50: '#b06cb2',
    500: '#8b2791',
    950: '#000000',
  },
}
SCSS
$custom: #8b2791;
$custom-light: #b06cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2791",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 296.604,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47176,
    "c": 0.18208,
    "h": 325.5
  },
  "luminance": 0.08984
}

Semantic roles & 50–950 ramp

primary
#8B2791
secondary
#60B95B
accent
#E14750
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2791

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

Preview Lab → · Contrast checker → · Palette generator →

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