#8B2797#8B2797

#8B2797 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.187 H 323.2°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#8B2797
RGBrgb(139, 39, 151)
HSLhsl(294, 59%, 37%)
HSVhsv(294, 74%, 59%)
CMYKcmyk(7.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(36.32, 55.97, -40.15)
CIE-LCHlch(36.32, 68.88, 324.34°)
OKLaboklab(47.55% 0.1499 -0.1121)
OKLCHoklch(47.55% 0.187 323.2)
XYZxyz(16.9584, 9.1754, 30.1500)
Luminance0.0917 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2797 #339727
analogous
#532797 #8B2797 #97276B
triadic
#8B2797 #978B27 #27978B
tetradic
#8B2797 #975327 #339727 #276B97
square
#8B2797 #975327 #339727 #276B97
split-complementary
#8B2797 #6B9727 #279753
monochromatic
#310E36 #5E1A66 #8B2797 #B834C8 #CA62D6

Accessibility & contrast

On white

7.41
#8B2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8B2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2797
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2797#FFFFFF#000000##FFFFFF
##8B27971.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#3A5994
Tritanopia (blue-blind)
#8D3B5D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b2797;
/* rgb */ color: rgb(139, 39, 151);
/* oklch */ color: oklch(47.6% 0.187 323.2);
Tailwind
colors: {
  custom: {
    50: '#b06cb6',
    500: '#8b2797',
    950: '#000000',
  },
}
SCSS
$custom: #8b2797;
$custom-light: #b06cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2797",
  "rgb": {
    "r": 139,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 293.571,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47553,
    "c": 0.18713,
    "h": 323.2
  },
  "luminance": 0.09174
}

Semantic roles & 50–950 ramp

primary
#8B2797
secondary
#68BC5E
accent
#E24656
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2797

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

Preview Lab → · Contrast checker → · Palette generator →

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