#8B2FA6#8B2FA6

#8B2FA6 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.191 H 317.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8B2FA6
RGBrgb(139, 47, 166)
HSLhsl(286, 56%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(16.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(38.33, 55.81, -45.98)
CIE-LCHlch(38.33, 72.31, 320.51°)
OKLaboklab(49.29% 0.1408 -0.1292)
OKLCHoklch(49.29% 0.191 317.5)
XYZxyz(18.5459, 10.2760, 37.0756)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2FA6 #4AA62F
analogous
#502FA6 #8B2FA6 #A62F86
triadic
#8B2FA6 #A68B2F #2FA68B
tetradic
#8B2FA6 #A6502F #4AA62F #2F86A6
square
#8B2FA6 #A6502F #4AA62F #2F86A6
split-complementary
#8B2FA6 #86A62F #2FA650
monochromatic
#3B1447 #632176 #8B2FA6 #AD47CB #C277D8

Accessibility & contrast

On white

6.87
#8B2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8B2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2FA6
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2FA6#FFFFFF#000000##FFFFFF
##8B2FA61.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#325DA3
Tritanopia (blue-blind)
#8A4767
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2fa6;
/* rgb */ color: rgb(139, 47, 166);
/* oklch */ color: oklch(49.3% 0.191 317.5);
Tailwind
colors: {
  custom: {
    50: '#b170c1',
    500: '#8b2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8b2fa6;
$custom-light: #b170c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2fa6",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 286.387,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49292,
    "c": 0.19105,
    "h": 317.5
  },
  "luminance": 0.10275
}

Semantic roles & 50–950 ramp

primary
#8B2FA6
secondary
#82C170
accent
#DF496B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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