#8B3EA2#8B3EA2

#8B3EA2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.8% C 0.167 H 317.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8B3EA2
RGBrgb(139, 62, 162)
HSLhsl(286, 45%, 44%)
HSVhsv(286, 62%, 64%)
CMYKcmyk(14.2%, 61.7%, 0%, 36.5%)
CIE-LABlab(40.48, 48.34, -40.15)
CIE-LCHlch(40.48, 62.84, 320.28°)
OKLaboklab(50.76% 0.1235 -0.1122)
OKLCHoklch(50.76% 0.167 317.7)
XYZxyz(18.8908, 11.5436, 35.4085)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3EA2 #55A23E
analogous
#593EA2 #8B3EA2 #A23E87
triadic
#8B3EA2 #A28B3E #3EA28B
tetradic
#8B3EA2 #A2593E #55A23E #3E87A2
square
#8B3EA2 #A2593E #55A23E #3E87A2
split-complementary
#8B3EA2 #87A23E #3EA259
monochromatic
#3F1C49 #652D76 #8B3EA2 #AA5CC1 #C189D2

Accessibility & contrast

On white

6.35
#8B3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8B3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3EA2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3EA2#FFFFFF#000000##FFFFFF
##8B3EA21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#42629F
Tritanopia (blue-blind)
#8A4F6A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b3ea2;
/* rgb */ color: rgb(139, 62, 162);
/* oklch */ color: oklch(50.8% 0.167 317.7);
Tailwind
colors: {
  custom: {
    50: '#b078be',
    500: '#8b3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8b3ea2;
$custom-light: #b078be;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3ea2",
  "rgb": {
    "r": 139,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 286.2,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.5076,
    "c": 0.16688,
    "h": 317.7
  },
  "luminance": 0.11543
}

Semantic roles & 50–950 ramp

primary
#8B3EA2
secondary
#8EBC80
accent
#D45371
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8B3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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