#8B2AB7#8B2AB7

#8B2AB7 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.212 H 312.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8B2AB7
RGBrgb(139, 42, 183)
HSLhsl(281, 63%, 44%)
HSVhsv(281, 77%, 72%)
CMYKcmyk(24%, 77%, 0%, 28.2%)
CIE-LABlab(38.84, 61.13, -55.28)
CIE-LCHlch(38.84, 82.42, 317.88°)
OKLaboklab(50.02% 0.1432 -0.1564)
OKLCHoklch(50.02% 0.212 312.5)
XYZxyz(20.0211, 10.5644, 45.7750)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AB7 #56B72A
analogous
#452AB7 #8B2AB7 #B72A9D
triadic
#8B2AB7 #B78B2A #2AB78B
tetradic
#8B2AB7 #B7452A #56B72A #2A9DB7
square
#8B2AB7 #B7452A #56B72A #2A9DB7
split-complementary
#8B2AB7 #9DB72A #2AB745
monochromatic
#3F1353 #651F85 #8B2AB7 #A949D5 #C17BE1

Accessibility & contrast

On white

6.75
#8B2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8B2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2AB7
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AB7#FFFFFF#000000##FFFFFF
##8B2AB71.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#145DB4
Tritanopia (blue-blind)
#864B70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b2ab7;
/* rgb */ color: rgb(139, 42, 183);
/* oklch */ color: oklch(50.0% 0.212 312.5);
Tailwind
colors: {
  custom: {
    50: '#b26fcd',
    500: '#8b2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ab7;
$custom-light: #b26fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ab7",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 281.277,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.50018,
    "c": 0.21208,
    "h": 312.5
  },
  "luminance": 0.10564
}

Semantic roles & 50–950 ramp

primary
#8B2AB7
secondary
#8EC974
accent
#E64275
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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