#8B2397#8B2397

#8B2397 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.191 H 323.4°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#8B2397
RGBrgb(139, 35, 151)
HSLhsl(294, 62%, 36%)
HSVhsv(294, 77%, 59%)
CMYKcmyk(7.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(35.84, 57.33, -40.92)
CIE-LCHlch(35.84, 70.44, 324.49°)
OKLaboklab(47.21% 0.1536 -0.1143)
OKLCHoklch(47.21% 0.191 323.4)
XYZxyz(16.8339, 8.9264, 30.1085)
Luminance0.0892 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2397 #2F9723
analogous
#512397 #8B2397 #972369
triadic
#8B2397 #978B23 #23978B
tetradic
#8B2397 #975123 #2F9723 #236997
square
#8B2397 #975123 #2F9723 #236997
split-complementary
#8B2397 #699723 #239751
monochromatic
#300C34 #5D1765 #8B2397 #B92FC9 #CC5BD9

Accessibility & contrast

On white

7.54
#8B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8B2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2397
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2397#FFFFFF#000000##FFFFFF
##8B23971.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#375894
Tritanopia (blue-blind)
#8D395C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2397;
/* rgb */ color: rgb(139, 35, 151);
/* oklch */ color: oklch(47.2% 0.191 323.4);
Tailwind
colors: {
  custom: {
    50: '#b16ab6',
    500: '#8b2397',
    950: '#000000',
  },
}
SCSS
$custom: #8b2397;
$custom-light: #b16ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2397",
  "rgb": {
    "r": 139,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 293.793,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47213,
    "c": 0.19144,
    "h": 323.4
  },
  "luminance": 0.08925
}

Semantic roles & 50–950 ramp

primary
#8B2397
secondary
#63BE58
accent
#E54253
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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