#8B2398#8B2398

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

Color values

HEX#8B2398
RGBrgb(139, 35, 152)
HSLhsl(293, 63%, 37%)
HSVhsv(293, 77%, 60%)
CMYKcmyk(8.6%, 77%, 0%, 40.4%)
CIE-LABlab(35.91, 57.52, -41.42)
CIE-LCHlch(35.91, 70.88, 324.24°)
OKLaboklab(47.28% 0.1535 -0.1157)
OKLCHoklch(47.28% 0.192 323)
XYZxyz(16.9154, 8.9590, 30.5380)
Luminance0.0896 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2398 #309823
analogous
#512398 #8B2398 #98236B
triadic
#8B2398 #988B23 #23988B
tetradic
#8B2398 #985123 #309823 #236B98
square
#8B2398 #985123 #309823 #236B98
split-complementary
#8B2398 #6B9823 #239851
monochromatic
#300C35 #5E1866 #8B2398 #B82ECA #CC5CD9

Accessibility & contrast

On white

7.52
#8B2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8B2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2398
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2398#FFFFFF#000000##FFFFFF
##8B23981.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b2398;
/* rgb */ color: rgb(139, 35, 152);
/* oklch */ color: oklch(47.3% 0.192 323.0);
Tailwind
colors: {
  custom: {
    50: '#b16ab7',
    500: '#8b2398',
    950: '#000000',
  },
}
SCSS
$custom: #8b2398;
$custom-light: #b16ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2398",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 293.333,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47278,
    "c": 0.19227,
    "h": 323
  },
  "luminance": 0.08958
}

Semantic roles & 50–950 ramp

primary
#8B2398
secondary
#64BE59
accent
#E64254
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2398

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

Preview Lab → · Contrast checker → · Palette generator →

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