#8B2FA8#8B2FA8

#8B2FA8 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.193 H 316.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8B2FA8
RGBrgb(139, 47, 168)
HSLhsl(286, 56%, 42%)
HSVhsv(286, 72%, 66%)
CMYKcmyk(17.3%, 72%, 0%, 34.1%)
CIE-LABlab(38.46, 56.21, -46.97)
CIE-LCHlch(38.46, 73.25, 320.12°)
OKLaboklab(49.43% 0.1406 -0.1321)
OKLCHoklch(49.43% 0.193 316.8)
XYZxyz(18.7308, 10.3499, 38.0493)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2FA8 #4CA82F
analogous
#4F2FA8 #8B2FA8 #A82F89
triadic
#8B2FA8 #A88B2F #2FA88B
tetradic
#8B2FA8 #A84F2F #4CA82F #2F89A8
square
#8B2FA8 #A84F2F #4CA82F #2F89A8
split-complementary
#8B2FA8 #89A82F #2FA84F
monochromatic
#3C1448 #632278 #8B2FA8 #AC48CC #C278D9

Accessibility & contrast

On white

6.84
#8B2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8B2FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2FA8
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2FA8#FFFFFF#000000##FFFFFF
##8B2FA81.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#305DA5
Tritanopia (blue-blind)
#894869
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b2fa8;
/* rgb */ color: rgb(139, 47, 168);
/* oklch */ color: oklch(49.4% 0.193 316.8);
Tailwind
colors: {
  custom: {
    50: '#b170c2',
    500: '#8b2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8b2fa8;
$custom-light: #b170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2fa8",
  "rgb": {
    "r": 139,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 285.62,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49427,
    "c": 0.1929,
    "h": 316.8
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

primary
#8B2FA8
secondary
#85C171
accent
#E0486D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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