#8B2497#8B2497

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

Color values

HEX#8B2497
RGBrgb(139, 36, 151)
HSLhsl(294, 61%, 37%)
HSVhsv(294, 76%, 59%)
CMYKcmyk(7.9%, 76.2%, 0%, 40.8%)
CIE-LABlab(35.96, 57.00, -40.73)
CIE-LCHlch(35.96, 70.06, 324.45°)
OKLaboklab(47.3% 0.1527 -0.1137)
OKLCHoklch(47.3% 0.19 323.3)
XYZxyz(16.8637, 8.9861, 30.1184)
Luminance0.0898 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2497 #309724
analogous
#522497 #8B2497 #97246A
triadic
#8B2497 #978B24 #24978B
tetradic
#8B2497 #975224 #309724 #246A97
square
#8B2497 #975224 #309724 #246A97
split-complementary
#8B2497 #6A9724 #249752
monochromatic
#300C34 #5E1866 #8B2497 #B830C8 #CC5DD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B2497#FFFFFF#000000##FFFFFF
##8B24971.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)
#004D9A
Deuteranopia (green-blind)
#385994
Tritanopia (blue-blind)
#8D3A5C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b2497;
/* rgb */ color: rgb(139, 36, 151);
/* oklch */ color: oklch(47.3% 0.190 323.3);
Tailwind
colors: {
  custom: {
    50: '#b16bb6',
    500: '#8b2497',
    950: '#000000',
  },
}
SCSS
$custom: #8b2497;
$custom-light: #b16bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2497",
  "rgb": {
    "r": 139,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 293.739,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47295,
    "c": 0.1904,
    "h": 323.3
  },
  "luminance": 0.08985
}

Semantic roles & 50–950 ramp

primary
#8B2497
secondary
#64BD5A
accent
#E54354
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2497

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

Preview Lab → · Contrast checker → · Palette generator →

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