#8B2BA2#8B2BA2

#8B2BA2 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.6% C 0.192 H 319.1°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#8B2BA2
RGBrgb(139, 43, 162)
HSLhsl(288, 58%, 40%)
HSVhsv(288, 73%, 64%)
CMYKcmyk(14.2%, 73.5%, 0%, 36.5%)
CIE-LABlab(37.53, 56.58, -44.87)
CIE-LCHlch(37.53, 72.21, 321.58°)
OKLaboklab(48.64% 0.1452 -0.1259)
OKLCHoklch(48.64% 0.192 319.1)
XYZxyz(18.0321, 9.8262, 35.1222)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2BA2 #42A22B
analogous
#4F2BA2 #8B2BA2 #A22B7E
triadic
#8B2BA2 #A28B2B #2BA28B
tetradic
#8B2BA2 #A24F2B #42A22B #2B7EA2
square
#8B2BA2 #A24F2B #42A22B #2B7EA2
split-complementary
#8B2BA2 #7EA22B #2BA24F
monochromatic
#381141 #621E72 #8B2BA2 #B13ECC #C46FD9

Accessibility & contrast

On white

7.08
#8B2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8B2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2BA2
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2BA2#FFFFFF#000000##FFFFFF
##8B2BA21.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#335B9F
Tritanopia (blue-blind)
#8B4364
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b2ba2;
/* rgb */ color: rgb(139, 43, 162);
/* oklch */ color: oklch(48.6% 0.192 319.1);
Tailwind
colors: {
  custom: {
    50: '#b16ebe',
    500: '#8b2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ba2;
$custom-light: #b16ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ba2",
  "rgb": {
    "r": 139,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 288.403,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48636,
    "c": 0.19216,
    "h": 319.1
  },
  "luminance": 0.09825
}

Semantic roles & 50–950 ramp

primary
#8B2BA2
secondary
#7AC069
accent
#E14764
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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