#8B2FA1#8B2FA1

#8B2FA1 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.0% C 0.186 H 319.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8B2FA1
RGBrgb(139, 47, 161)
HSLhsl(288, 55%, 41%)
HSVhsv(288, 71%, 63%)
CMYKcmyk(13.7%, 70.8%, 0%, 36.9%)
CIE-LABlab(38.01, 54.82, -43.49)
CIE-LCHlch(38.01, 69.98, 321.57°)
OKLaboklab(48.96% 0.1411 -0.1219)
OKLCHoklch(48.96% 0.186 319.2)
XYZxyz(18.0962, 10.0961, 34.7068)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2FA1 #45A12F
analogous
#522FA1 #8B2FA1 #A12F7E
triadic
#8B2FA1 #A18B2F #2FA18B
tetradic
#8B2FA1 #A1522F #45A12F #2F7EA1
square
#8B2FA1 #A1522F #45A12F #2F7EA1
split-complementary
#8B2FA1 #7EA12F #2FA152
monochromatic
#391342 #622172 #8B2FA1 #AF45C9 #C374D6

Accessibility & contrast

On white

6.96
#8B2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8B2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2FA1
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2FA1#FFFFFF#000000##FFFFFF
##8B2FA11.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#375D9E
Tritanopia (blue-blind)
#8B4565
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b2fa1;
/* rgb */ color: rgb(139, 47, 161);
/* oklch */ color: oklch(49.0% 0.186 319.2);
Tailwind
colors: {
  custom: {
    50: '#b070bd',
    500: '#8b2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #8b2fa1;
$custom-light: #b070bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2fa1",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 288.421,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48963,
    "c": 0.18648,
    "h": 319.2
  },
  "luminance": 0.10095
}

Semantic roles & 50–950 ramp

primary
#8B2FA1
secondary
#7DBE6E
accent
#DE4A66
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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