#8B2AB6#8B2AB6

#8B2AB6 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.211 H 312.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8B2AB6
RGBrgb(139, 42, 182)
HSLhsl(282, 63%, 44%)
HSVhsv(282, 77%, 71%)
CMYKcmyk(23.6%, 76.9%, 0%, 28.6%)
CIE-LABlab(38.77, 60.93, -54.80)
CIE-LCHlch(38.77, 81.95, 318.03°)
OKLaboklab(49.95% 0.1434 -0.155)
OKLCHoklch(49.95% 0.211 312.8)
XYZxyz(19.9174, 10.5229, 45.2288)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AB6 #55B62A
analogous
#452AB6 #8B2AB6 #B62A9B
triadic
#8B2AB6 #B68B2A #2AB68B
tetradic
#8B2AB6 #B6452A #55B62A #2A9BB6
square
#8B2AB6 #B6452A #55B62A #2A9BB6
split-complementary
#8B2AB6 #9BB62A #2AB645
monochromatic
#3F1353 #651F84 #8B2AB6 #AA48D5 #C17AE0

Accessibility & contrast

On white

6.76
#8B2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8B2AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2AB6
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AB6#FFFFFF#000000##FFFFFF
##8B2AB61.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#165DB3
Tritanopia (blue-blind)
#864B6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b2ab6;
/* rgb */ color: rgb(139, 42, 182);
/* oklch */ color: oklch(49.9% 0.211 312.8);
Tailwind
colors: {
  custom: {
    50: '#b26fcd',
    500: '#8b2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ab6;
$custom-light: #b26fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ab6",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 281.571,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49945,
    "c": 0.21118,
    "h": 312.8
  },
  "luminance": 0.10522
}

Semantic roles & 50–950 ramp

primary
#8B2AB6
secondary
#8EC873
accent
#E64274
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8B2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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