#8B2EB1#8B2EB1

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

Color values

HEX#8B2EB1
RGBrgb(139, 46, 177)
HSLhsl(283, 59%, 44%)
HSVhsv(283, 74%, 69%)
CMYKcmyk(21.5%, 74%, 0%, 30.6%)
CIE-LABlab(38.93, 58.43, -51.58)
CIE-LCHlch(38.93, 77.94, 318.56°)
OKLaboklab(49.95% 0.1405 -0.1456)
OKLCHoklch(49.95% 0.202 314)
XYZxyz(19.5589, 10.6179, 42.6056)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EB1 #54B12E
analogous
#492EB1 #8B2EB1 #B12E95
triadic
#8B2EB1 #B18B2E #2EB18B
tetradic
#8B2EB1 #B1492E #54B12E #2E95B1
square
#8B2EB1 #B1492E #54B12E #2E95B1
split-complementary
#8B2EB1 #95B12E #2EB149
monochromatic
#3F1550 #652180 #8B2EB1 #AA4CD0 #C17CDD

Accessibility & contrast

On white

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

On black

3.12
#8B2EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8B2EB1#FFFFFF#000000##FFFFFF
##8B2EB11.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B5
Deuteranopia (green-blind)
#255EAE
Tritanopia (blue-blind)
#874B6D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2eb1;
/* rgb */ color: rgb(139, 46, 177);
/* oklch */ color: oklch(50.0% 0.202 314.0);
Tailwind
colors: {
  custom: {
    50: '#b170c9',
    500: '#8b2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #8b2eb1;
$custom-light: #b170c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2eb1",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 282.595,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4995,
    "c": 0.20235,
    "h": 314
  },
  "luminance": 0.10617
}

Semantic roles & 50–950 ramp

primary
#8B2EB1
secondary
#8DC675
accent
#E24673
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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