#8B2BB7#8B2BB7

#8B2BB7 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.211 H 312.4°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8B2BB7
RGBrgb(139, 43, 183)
HSLhsl(281, 62%, 44%)
HSVhsv(281, 77%, 72%)
CMYKcmyk(24%, 76.5%, 0%, 28.2%)
CIE-LABlab(38.96, 60.78, -55.08)
CIE-LCHlch(38.96, 82.02, 317.82°)
OKLaboklab(50.11% 0.1423 -0.1558)
OKLCHoklch(50.11% 0.211 312.4)
XYZxyz(20.0570, 10.6362, 45.7870)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2BB7 #57B72B
analogous
#452BB7 #8B2BB7 #B72B9D
triadic
#8B2BB7 #B78B2B #2BB78B
tetradic
#8B2BB7 #B7452B #57B72B #2B9DB7
square
#8B2BB7 #B7452B #57B72B #2B9DB7
split-complementary
#8B2BB7 #9DB72B #2BB745
monochromatic
#401454 #651F85 #8B2BB7 #A94BD5 #C17CE0

Accessibility & contrast

On white

6.72
#8B2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B2BB7
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2BB7#FFFFFF#000000##FFFFFF
##8B2BB71.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#155EB4
Tritanopia (blue-blind)
#864C70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2bb7;
/* rgb */ color: rgb(139, 43, 183);
/* oklch */ color: oklch(50.1% 0.211 312.4);
Tailwind
colors: {
  custom: {
    50: '#b26fcd',
    500: '#8b2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2bb7;
$custom-light: #b26fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2bb7",
  "rgb": {
    "r": 139,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 281.143,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50106,
    "c": 0.21106,
    "h": 312.4
  },
  "luminance": 0.10636
}

Semantic roles & 50–950 ramp

primary
#8B2BB7
secondary
#8FC975
accent
#E54376
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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