#8B2597#8B2597

#8B2597 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.4% C 0.189 H 323.3°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#8B2597
RGBrgb(139, 37, 151)
HSLhsl(294, 61%, 37%)
HSVhsv(294, 75%, 59%)
CMYKcmyk(7.9%, 75.5%, 0%, 40.8%)
CIE-LABlab(36.08, 56.66, -40.54)
CIE-LCHlch(36.08, 69.67, 324.42°)
OKLaboklab(47.38% 0.1518 -0.1132)
OKLCHoklch(47.38% 0.189 323.3)
XYZxyz(16.8944, 9.0475, 30.1286)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2597 #319725
analogous
#522597 #8B2597 #97256A
triadic
#8B2597 #978B25 #25978B
tetradic
#8B2597 #975225 #319725 #256A97
square
#8B2597 #975225 #319725 #256A97
split-complementary
#8B2597 #6A9725 #259752
monochromatic
#310D35 #5E1966 #8B2597 #B831C8 #CB5FD8

Accessibility & contrast

On white

7.48
#8B2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8B2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2597
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2597#FFFFFF#000000##FFFFFF
##8B25971.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#385994
Tritanopia (blue-blind)
#8D3A5C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b2597;
/* rgb */ color: rgb(139, 37, 151);
/* oklch */ color: oklch(47.4% 0.189 323.3);
Tailwind
colors: {
  custom: {
    50: '#b06bb6',
    500: '#8b2597',
    950: '#000000',
  },
}
SCSS
$custom: #8b2597;
$custom-light: #b06bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2597",
  "rgb": {
    "r": 139,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 293.684,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47379,
    "c": 0.18934,
    "h": 323.3
  },
  "luminance": 0.09046
}

Semantic roles & 50–950 ramp

primary
#8B2597
secondary
#65BD5B
accent
#E44455
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2597

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

Preview Lab → · Contrast checker → · Palette generator →

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