#8B2EA5#8B2EA5

#8B2EA5 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.1% C 0.191 H 317.9°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8B2EA5
RGBrgb(139, 46, 165)
HSLhsl(287, 56%, 41%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.8%, 72.1%, 0%, 35.3%)
CIE-LABlab(38.13, 56.01, -45.71)
CIE-LCHlch(38.13, 72.29, 320.78°)
OKLaboklab(49.13% 0.1419 -0.1284)
OKLCHoklch(49.13% 0.191 317.9)
XYZxyz(18.4150, 10.1604, 36.5812)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EA5 #48A52E
analogous
#502EA5 #8B2EA5 #A52E84
triadic
#8B2EA5 #A58B2E #2EA58B
tetradic
#8B2EA5 #A5502E #48A52E #2E84A5
square
#8B2EA5 #A5502E #48A52E #2E84A5
split-complementary
#8B2EA5 #84A52E #2EA550
monochromatic
#3A1345 #632175 #8B2EA5 #AE45CB #C375D8

Accessibility & contrast

On white

6.93
#8B2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8B2EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EA5
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EA5#FFFFFF#000000##FFFFFF
##8B2EA51.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A8
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#8A4667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2ea5;
/* rgb */ color: rgb(139, 46, 165);
/* oklch */ color: oklch(49.1% 0.191 317.9);
Tailwind
colors: {
  custom: {
    50: '#b170c0',
    500: '#8b2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ea5;
$custom-light: #b170c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ea5",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 286.891,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49126,
    "c": 0.19134,
    "h": 317.9
  },
  "luminance": 0.1016
}

Semantic roles & 50–950 ramp

primary
#8B2EA5
secondary
#80C06F
accent
#E04869
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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