#8B2AA8#8B2AA8

#8B2AA8 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.199 H 317.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8B2AA8
RGBrgb(139, 42, 168)
HSLhsl(286, 60%, 41%)
HSVhsv(286, 75%, 66%)
CMYKcmyk(17.3%, 75%, 0%, 34.1%)
CIE-LABlab(37.79, 58.12, -48.05)
CIE-LCHlch(37.79, 75.41, 320.42°)
OKLaboklab(48.95% 0.1455 -0.1352)
OKLCHoklch(48.95% 0.199 317.1)
XYZxyz(18.5423, 9.9728, 37.9864)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AA8 #47A82A
analogous
#4C2AA8 #8B2AA8 #A82A86
triadic
#8B2AA8 #A88B2A #2AA88B
tetradic
#8B2AA8 #A84C2A #47A82A #2A86A8
square
#8B2AA8 #A84C2A #47A82A #2A86A8
split-complementary
#8B2AA8 #86A82A #2AA84C
monochromatic
#3A1246 #621E77 #8B2AA8 #AE40CF #C371DB

Accessibility & contrast

On white

7.01
#8B2AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8B2AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2AA8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2AA8#FFFFFF#000000##FFFFFF
##8B2AA81.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AB
Deuteranopia (green-blind)
#2C5CA5
Tritanopia (blue-blind)
#8A4567
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b2aa8;
/* rgb */ color: rgb(139, 42, 168);
/* oklch */ color: oklch(49.0% 0.199 317.1);
Tailwind
colors: {
  custom: {
    50: '#b16ec2',
    500: '#8b2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #8b2aa8;
$custom-light: #b16ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2aa8",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 286.19,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48951,
    "c": 0.19861,
    "h": 317.1
  },
  "luminance": 0.09972
}

Semantic roles & 50–950 ramp

primary
#8B2AA8
secondary
#7FC36B
accent
#E34569
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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