#8B2A9D#8B2A9D

#8B2A9D is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.189 H 320.9°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8B2A9D
RGBrgb(139, 42, 157)
HSLhsl(291, 58%, 39%)
HSVhsv(291, 73%, 62%)
CMYKcmyk(11.5%, 73.2%, 0%, 38.4%)
CIE-LABlab(37.08, 55.99, -42.58)
CIE-LCHlch(37.08, 70.34, 322.75°)
OKLaboklab(48.21% 0.1466 -0.1192)
OKLCHoklch(48.21% 0.189 320.9)
XYZxyz(17.5605, 9.5801, 32.8159)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A9D #3C9D2A
analogous
#522A9D #8B2A9D #9D2A76
triadic
#8B2A9D #9D8B2A #2A9D8B
tetradic
#8B2A9D #9D522A #3C9D2A #2A769D
square
#8B2A9D #9D522A #3C9D2A #2A769D
split-complementary
#8B2A9D #769D2A #2A9D52
monochromatic
#36103C #601D6D #8B2A9D #B43ACA #C66AD7

Accessibility & contrast

On white

7.20
#8B2A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8B2A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2A9D
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A9D#FFFFFF#000000##FFFFFF
##8B2A9D1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#375B9A
Tritanopia (blue-blind)
#8C4061
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b2a9d;
/* rgb */ color: rgb(139, 42, 157);
/* oklch */ color: oklch(48.2% 0.189 320.9);
Tailwind
colors: {
  custom: {
    50: '#b06dba',
    500: '#8b2a9d',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a9d;
$custom-light: #b06dba;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a9d",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 290.609,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48213,
    "c": 0.18889,
    "h": 320.9
  },
  "luminance": 0.09579
}

Semantic roles & 50–950 ramp

primary
#8B2A9D
secondary
#73BE65
accent
#E1475F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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