#8B2BB8#8B2BB8

#8B2BB8 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.212 H 312.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8B2BB8
RGBrgb(139, 43, 184)
HSLhsl(281, 62%, 45%)
HSVhsv(281, 77%, 72%)
CMYKcmyk(24.5%, 76.6%, 0%, 27.8%)
CIE-LABlab(39.03, 60.98, -55.55)
CIE-LCHlch(39.03, 82.49, 317.67°)
OKLaboklab(50.18% 0.1422 -0.1572)
OKLCHoklch(50.18% 0.212 312.1)
XYZxyz(20.1615, 10.6780, 46.3371)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2BB8 #58B82B
analogous
#442BB8 #8B2BB8 #B82B9F
triadic
#8B2BB8 #B88B2B #2BB88B
tetradic
#8B2BB8 #B8442B #58B82B #2B9FB8
square
#8B2BB8 #B8442B #58B82B #2B9FB8
split-complementary
#8B2BB8 #9FB82B #2BB844
monochromatic
#401455 #661F86 #8B2BB8 #A94BD5 #C17DE1

Accessibility & contrast

On white

6.70
#8B2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8B2BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2BB8
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2BB8#FFFFFF#000000##FFFFFF
##8B2BB81.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BC
Deuteranopia (green-blind)
#135EB5
Tritanopia (blue-blind)
#864C71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2bb8;
/* rgb */ color: rgb(139, 43, 184);
/* oklch */ color: oklch(50.2% 0.212 312.1);
Tailwind
colors: {
  custom: {
    50: '#b26fce',
    500: '#8b2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #8b2bb8;
$custom-light: #b26fce;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2bb8",
  "rgb": {
    "r": 139,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 280.851,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50179,
    "c": 0.21197,
    "h": 312.1
  },
  "luminance": 0.10677
}

Semantic roles & 50–950 ramp

primary
#8B2BB8
secondary
#90C976
accent
#E54376
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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