#8B2492#8B2492

#8B2492 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.186 H 325.2°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#8B2492
RGBrgb(139, 36, 146)
HSLhsl(296, 60%, 36%)
HSVhsv(296, 75%, 57%)
CMYKcmyk(4.8%, 75.3%, 0%, 42.7%)
CIE-LABlab(35.65, 56.11, -38.17)
CIE-LCHlch(35.65, 67.86, 325.77°)
OKLaboklab(46.98% 0.153 -0.1063)
OKLCHoklch(46.98% 0.186 325.2)
XYZxyz(16.4663, 8.8271, 28.0251)
Luminance0.0883 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2492 #2B9224
analogous
#542492 #8B2492 #922462
triadic
#8B2492 #928B24 #24928B
tetradic
#8B2492 #925424 #2B9224 #246292
square
#8B2492 #925424 #2B9224 #246292
split-complementary
#8B2492 #629224 #249254
monochromatic
#2E0C30 #5C1861 #8B2492 #BA30C3 #CE5AD6

Accessibility & contrast

On white

7.59
#8B2492 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8B2492 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2492
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2492#FFFFFF#000000##FFFFFF
##8B24921.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C95
Deuteranopia (green-blind)
#3C588F
Tritanopia (blue-blind)
#8E3759
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8b2492;
/* rgb */ color: rgb(139, 36, 146);
/* oklch */ color: oklch(47.0% 0.186 325.2);
Tailwind
colors: {
  custom: {
    50: '#b06ab2',
    500: '#8b2492',
    950: '#000000',
  },
}
SCSS
$custom: #8b2492;
$custom-light: #b06ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2492",
  "rgb": {
    "r": 139,
    "g": 36,
    "b": 146
  },
  "hsl": {
    "h": 296.182,
    "s": 60.44,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46976,
    "c": 0.18626,
    "h": 325.2
  },
  "luminance": 0.08826
}

Semantic roles & 50–950 ramp

primary
#8B2492
secondary
#5DBB57
accent
#E4444E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2492

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

Preview Lab → · Contrast checker → · Palette generator →

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