#8B2A97#8B2A97

#8B2A97 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.8% C 0.184 H 323.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#8B2A97
RGBrgb(139, 42, 151)
HSLhsl(293, 56%, 38%)
HSVhsv(293, 72%, 59%)
CMYKcmyk(7.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(36.71, 54.87, -39.53)
CIE-LCHlch(36.71, 67.63, 324.22°)
OKLaboklab(47.83% 0.1469 -0.1103)
OKLCHoklch(47.83% 0.184 323.1)
XYZxyz(17.0608, 9.3803, 30.1841)
Luminance0.0938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2A97 #36972A
analogous
#542A97 #8B2A97 #972A6D
triadic
#8B2A97 #978B2A #2A978B
tetradic
#8B2A97 #97542A #36972A #2A6D97
square
#8B2A97 #97542A #36972A #2A6D97
split-complementary
#8B2A97 #6D972A #2A9754
monochromatic
#330F37 #5F1D67 #8B2A97 #B737C7 #C967D5

Accessibility & contrast

On white

7.30
#8B2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8B2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2A97
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2A97#FFFFFF#000000##FFFFFF
##8B2A971.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014F9A
Deuteranopia (green-blind)
#3B5A94
Tritanopia (blue-blind)
#8D3D5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b2a97;
/* rgb */ color: rgb(139, 42, 151);
/* oklch */ color: oklch(47.8% 0.184 323.1);
Tailwind
colors: {
  custom: {
    50: '#b06db6',
    500: '#8b2a97',
    950: '#000000',
  },
}
SCSS
$custom: #8b2a97;
$custom-light: #b06db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2a97",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 293.394,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.47829,
    "c": 0.18366,
    "h": 323.1
  },
  "luminance": 0.09379
}

Semantic roles & 50–950 ramp

primary
#8B2A97
secondary
#6CBB62
accent
#E04859
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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