#8B2498#8B2498

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

Color values

HEX#8B2498
RGBrgb(139, 36, 152)
HSLhsl(293, 62%, 37%)
HSVhsv(293, 76%, 60%)
CMYKcmyk(8.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(36.02, 57.19, -41.24)
CIE-LCHlch(36.02, 70.50, 324.20°)
OKLaboklab(47.36% 0.1526 -0.1152)
OKLCHoklch(47.36% 0.191 323)
XYZxyz(16.9453, 9.0187, 30.5479)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2498 #319824
analogous
#512498 #8B2498 #98246B
triadic
#8B2498 #988B24 #24988B
tetradic
#8B2498 #985124 #319824 #246B98
square
#8B2498 #985124 #319824 #246B98
split-complementary
#8B2498 #6B9824 #249851
monochromatic
#310D35 #5E1867 #8B2498 #B830C9 #CB5ED9

Accessibility & contrast

On white

7.49
#8B2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B2498
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2498#FFFFFF#000000##FFFFFF
##8B24981.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#375995
Tritanopia (blue-blind)
#8D3A5D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8b2498;
/* rgb */ color: rgb(139, 36, 152);
/* oklch */ color: oklch(47.4% 0.191 323.0);
Tailwind
colors: {
  custom: {
    50: '#b16bb7',
    500: '#8b2498',
    950: '#000000',
  },
}
SCSS
$custom: #8b2498;
$custom-light: #b16bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2498",
  "rgb": {
    "r": 139,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 293.276,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.19124,
    "h": 323
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#8B2498
secondary
#65BE5A
accent
#E54355
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2498

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

Preview Lab → · Contrast checker → · Palette generator →

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