#8B2AB9#8B2AB9

#8B2AB9 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.2% C 0.214 H 311.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8B2AB9
RGBrgb(139, 42, 185)
HSLhsl(281, 63%, 45%)
HSVhsv(281, 77%, 73%)
CMYKcmyk(24.9%, 77.3%, 0%, 27.5%)
CIE-LABlab(38.98, 61.55, -56.22)
CIE-LCHlch(38.98, 83.36, 317.59°)
OKLaboklab(50.17% 0.1428 -0.1592)
OKLCHoklch(50.17% 0.214 311.9)
XYZxyz(20.2308, 10.6482, 46.8791)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AB9 #58B92A
analogous
#432AB9 #8B2AB9 #B92AA0
triadic
#8B2AB9 #B98B2A #2AB98B
tetradic
#8B2AB9 #B9432A #58B92A #2AA0B9
square
#8B2AB9 #B9432A #58B92A #2AA0B9
split-complementary
#8B2AB9 #A0B92A #2AB943
monochromatic
#401355 #661F87 #8B2AB9 #A94AD6 #C17CE1

Accessibility & contrast

On white

6.71
#8B2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8B2AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2AB9
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AB9#FFFFFF#000000##FFFFFF
##8B2AB91.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BD
Deuteranopia (green-blind)
#0D5EB6
Tritanopia (blue-blind)
#854C71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2ab9;
/* rgb */ color: rgb(139, 42, 185);
/* oklch */ color: oklch(50.2% 0.214 311.9);
Tailwind
colors: {
  custom: {
    50: '#b26fcf',
    500: '#8b2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ab9;
$custom-light: #b26fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ab9",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 280.699,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50166,
    "c": 0.21389,
    "h": 311.9
  },
  "luminance": 0.10648
}

Semantic roles & 50–950 ramp

primary
#8B2AB9
secondary
#90CA75
accent
#E64277
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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