#8B2A9E#8B2A9E

#8B2A9E is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.190 H 320.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8B2A9E
RGBrgb(139, 42, 158)
HSLhsl(290, 58%, 39%)
HSVhsv(290, 73%, 62%)
CMYKcmyk(12%, 73.4%, 0%, 38%)
CIE-LABlab(37.14, 56.18, -43.08)
CIE-LCHlch(37.14, 70.80, 322.52°)
OKLaboklab(48.28% 0.1465 -0.1206)
OKLCHoklch(48.28% 0.19 320.5)
XYZxyz(17.6462, 9.6144, 33.2674)
Luminance0.0961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A9E #3D9E2A
analogous
#512A9E #8B2A9E #9E2A77
triadic
#8B2A9E #9E8B2A #2A9E8B
tetradic
#8B2A9E #9E512A #3D9E2A #2A779E
square
#8B2A9E #9E512A #3D9E2A #2A779E
split-complementary
#8B2A9E #779E2A #2A9E51
monochromatic
#36103D #601D6E #8B2A9E #B33ACB #C66BD8

Accessibility & contrast

On white

7.18
#8B2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B2A9E
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A9E#FFFFFF#000000##FFFFFF
##8B2A9E1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#365B9B
Tritanopia (blue-blind)
#8C4062
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b2a9e;
/* rgb */ color: rgb(139, 42, 158);
/* oklch */ color: oklch(48.3% 0.190 320.5);
Tailwind
colors: {
  custom: {
    50: '#b06dbb',
    500: '#8b2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a9e;
$custom-light: #b06dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a9e",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 290.172,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48279,
    "c": 0.18977,
    "h": 320.5
  },
  "luminance": 0.09614
}

Semantic roles & 50–950 ramp

primary
#8B2A9E
secondary
#74BE66
accent
#E14760
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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