#8B2EA7#8B2EA7

#8B2EA7 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.193 H 317.2°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8B2EA7
RGBrgb(139, 46, 167)
HSLhsl(286, 57%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(16.8%, 72.5%, 0%, 34.5%)
CIE-LABlab(38.26, 56.41, -46.70)
CIE-LCHlch(38.26, 73.23, 320.38°)
OKLaboklab(49.26% 0.1417 -0.1313)
OKLCHoklch(49.26% 0.193 317.2)
XYZxyz(18.5985, 10.2338, 37.5474)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EA7 #4AA72E
analogous
#4F2EA7 #8B2EA7 #A72E87
triadic
#8B2EA7 #A78B2E #2EA78B
tetradic
#8B2EA7 #A74F2E #4AA72E #2E87A7
square
#8B2EA7 #A74F2E #4AA72E #2E87A7
split-complementary
#8B2EA7 #87A72E #2EA74F
monochromatic
#3B1447 #632177 #8B2EA7 #AD46CC #C276D9

Accessibility & contrast

On white

6.89
#8B2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8B2EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EA7
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EA7#FFFFFF#000000##FFFFFF
##8B2EA71.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#315DA4
Tritanopia (blue-blind)
#8A4768
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2ea7;
/* rgb */ color: rgb(139, 46, 167);
/* oklch */ color: oklch(49.3% 0.193 317.2);
Tailwind
colors: {
  custom: {
    50: '#b170c2',
    500: '#8b2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ea7;
$custom-light: #b170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ea7",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 286.116,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4926,
    "c": 0.19317,
    "h": 317.2
  },
  "luminance": 0.10233
}

Semantic roles & 50–950 ramp

primary
#8B2EA7
secondary
#82C170
accent
#E0486B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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