#8B2FA4#8B2FA4

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

Color values

HEX#8B2FA4
RGBrgb(139, 47, 164)
HSLhsl(287, 55%, 41%)
HSVhsv(287, 71%, 64%)
CMYKcmyk(15.2%, 71.3%, 0%, 35.7%)
CIE-LABlab(38.20, 55.41, -44.99)
CIE-LCHlch(38.20, 71.38, 320.93°)
OKLaboklab(49.16% 0.1409 -0.1263)
OKLCHoklch(49.16% 0.189 318.1)
XYZxyz(18.3639, 10.2032, 36.1169)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2FA4 #48A42F
analogous
#512FA4 #8B2FA4 #A42F83
triadic
#8B2FA4 #A48B2F #2FA48B
tetradic
#8B2FA4 #A4512F #48A42F #2F83A4
square
#8B2FA4 #A4512F #48A42F #2F83A4
split-complementary
#8B2FA4 #83A42F #2FA451
monochromatic
#3A1445 #632174 #8B2FA4 #AE46CA #C376D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B2FA4#FFFFFF#000000##FFFFFF
##8B2FA41.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)
#0054A7
Deuteranopia (green-blind)
#345DA1
Tritanopia (blue-blind)
#8A4666
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2fa4;
/* rgb */ color: rgb(139, 47, 164);
/* oklch */ color: oklch(49.2% 0.189 318.1);
Tailwind
colors: {
  custom: {
    50: '#b070c0',
    500: '#8b2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8b2fa4;
$custom-light: #b070c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2fa4",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 287.179,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49159,
    "c": 0.18922,
    "h": 318.1
  },
  "luminance": 0.10202
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8B2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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