#8B2FA5#8B2FA5

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

Color values

HEX#8B2FA5
RGBrgb(139, 47, 165)
HSLhsl(287, 56%, 42%)
HSVhsv(287, 72%, 65%)
CMYKcmyk(15.8%, 71.5%, 0%, 35.3%)
CIE-LABlab(38.27, 55.61, -45.49)
CIE-LCHlch(38.27, 71.84, 320.72°)
OKLaboklab(49.23% 0.1409 -0.1277)
OKLCHoklch(49.23% 0.19 317.8)
XYZxyz(18.4545, 10.2394, 36.5943)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2FA5 #49A52F
analogous
#502FA5 #8B2FA5 #A52F84
triadic
#8B2FA5 #A58B2F #2FA58B
tetradic
#8B2FA5 #A5502F #49A52F #2F84A5
square
#8B2FA5 #A5502F #49A52F #2F84A5
split-complementary
#8B2FA5 #84A52F #2FA550
monochromatic
#3B1446 #632175 #8B2FA5 #AD47CB #C376D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B2FA5#FFFFFF#000000##FFFFFF
##8B2FA51.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)
#0054A8
Deuteranopia (green-blind)
#335DA2
Tritanopia (blue-blind)
#8A4667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2fa5;
/* rgb */ color: rgb(139, 47, 165);
/* oklch */ color: oklch(49.2% 0.190 317.8);
Tailwind
colors: {
  custom: {
    50: '#b070c0',
    500: '#8b2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8b2fa5;
$custom-light: #b070c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2fa5",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 286.78,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49226,
    "c": 0.19014,
    "h": 317.8
  },
  "luminance": 0.10239
}

Semantic roles & 50–950 ramp

primary
#8B2FA5
secondary
#81C070
accent
#DF496A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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