#8B2AA6#8B2AA6

#8B2AA6 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.197 H 317.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8B2AA6
RGBrgb(139, 42, 166)
HSLhsl(287, 60%, 41%)
HSVhsv(287, 75%, 65%)
CMYKcmyk(16.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(37.66, 57.73, -47.06)
CIE-LCHlch(37.66, 74.48, 320.81°)
OKLaboklab(48.81% 0.1457 -0.1323)
OKLCHoklch(48.81% 0.197 317.8)
XYZxyz(18.3574, 9.8989, 37.0127)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AA6 #45A62A
analogous
#4D2AA6 #8B2AA6 #A62A83
triadic
#8B2AA6 #A68B2A #2AA68B
tetradic
#8B2AA6 #A64D2A #45A62A #2A83A6
square
#8B2AA6 #A64D2A #45A62A #2A83A6
split-complementary
#8B2AA6 #83A62A #2AA64D
monochromatic
#391144 #621E75 #8B2AA6 #AF3FCE #C370DB

Accessibility & contrast

On white

7.05
#8B2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8B2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2AA6
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AA6#FFFFFF#000000##FFFFFF
##8B2AA61.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A9
Deuteranopia (green-blind)
#2E5CA3
Tritanopia (blue-blind)
#8A4466
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b2aa6;
/* rgb */ color: rgb(139, 42, 166);
/* oklch */ color: oklch(48.8% 0.197 317.8);
Tailwind
colors: {
  custom: {
    50: '#b16ec1',
    500: '#8b2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #8b2aa6;
$custom-light: #b16ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2aa6",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 286.935,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48814,
    "c": 0.19684,
    "h": 317.8
  },
  "luminance": 0.09898
}

Semantic roles & 50–950 ramp

primary
#8B2AA6
secondary
#7DC26A
accent
#E34567
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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