#8B2AA5#8B2AA5

#8B2AA5 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.196 H 318.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#8B2AA5
RGBrgb(139, 42, 165)
HSLhsl(287, 59%, 41%)
HSVhsv(287, 75%, 65%)
CMYKcmyk(15.8%, 74.5%, 0%, 35.3%)
CIE-LABlab(37.59, 57.53, -46.57)
CIE-LCHlch(37.59, 74.02, 321.01°)
OKLaboklab(48.75% 0.1459 -0.1309)
OKLCHoklch(48.75% 0.196 318.1)
XYZxyz(18.2660, 9.8623, 36.5315)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AA5 #44A52A
analogous
#4D2AA5 #8B2AA5 #A52A81
triadic
#8B2AA5 #A58B2A #2AA58B
tetradic
#8B2AA5 #A54D2A #44A52A #2A81A5
square
#8B2AA5 #A54D2A #44A52A #2A81A5
split-complementary
#8B2AA5 #81A52A #2AA54D
monochromatic
#391143 #621E74 #8B2AA5 #B03ECE #C46FDA

Accessibility & contrast

On white

7.06
#8B2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8B2AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2AA5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AA5#FFFFFF#000000##FFFFFF
##8B2AA51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#2F5BA2
Tritanopia (blue-blind)
#8A4366
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b2aa5;
/* rgb */ color: rgb(139, 42, 165);
/* oklch */ color: oklch(48.7% 0.196 318.1);
Tailwind
colors: {
  custom: {
    50: '#b16ec0',
    500: '#8b2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #8b2aa5;
$custom-light: #b16ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2aa5",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 287.317,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48746,
    "c": 0.19595,
    "h": 318.1
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

primary
#8B2AA5
secondary
#7CC169
accent
#E34566
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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