#8B2EA6#8B2EA6

#8B2EA6 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.2% C 0.192 H 317.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8B2EA6
RGBrgb(139, 46, 166)
HSLhsl(287, 57%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(16.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(38.19, 56.21, -46.21)
CIE-LCHlch(38.19, 72.76, 320.58°)
OKLaboklab(49.19% 0.1418 -0.1298)
OKLCHoklch(49.19% 0.192 317.5)
XYZxyz(18.5064, 10.1969, 37.0624)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EA6 #49A62E
analogous
#4F2EA6 #8B2EA6 #A62E85
triadic
#8B2EA6 #A68B2E #2EA68B
tetradic
#8B2EA6 #A64F2E #49A62E #2E85A6
square
#8B2EA6 #A64F2E #49A62E #2E85A6
split-complementary
#8B2EA6 #85A62E #2EA64F
monochromatic
#3B1346 #632176 #8B2EA6 #AD46CC #C376D9

Accessibility & contrast

On white

6.91
#8B2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8B2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EA6
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EA6#FFFFFF#000000##FFFFFF
##8B2EA61.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#8A4667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2ea6;
/* rgb */ color: rgb(139, 46, 166);
/* oklch */ color: oklch(49.2% 0.192 317.5);
Tailwind
colors: {
  custom: {
    50: '#b170c1',
    500: '#8b2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ea6;
$custom-light: #b170c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ea6",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 286.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49193,
    "c": 0.19225,
    "h": 317.5
  },
  "luminance": 0.10196
}

Semantic roles & 50–950 ramp

primary
#8B2EA6
secondary
#81C16F
accent
#E0486A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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