#8B2E9C#8B2E9C

#8B2E9C is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.183 H 321.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#8B2E9C
RGBrgb(139, 46, 156)
HSLhsl(291, 54%, 40%)
HSVhsv(291, 71%, 61%)
CMYKcmyk(10.9%, 70.5%, 0%, 38.8%)
CIE-LABlab(37.56, 54.25, -41.20)
CIE-LCHlch(37.56, 68.12, 322.79°)
OKLaboklab(48.54% 0.1425 -0.1152)
OKLCHoklch(48.54% 0.183 321)
XYZxyz(17.6245, 9.8442, 32.4178)
Luminance0.0984 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2E9C #3F9C2E
analogous
#542E9C #8B2E9C #9C2E76
triadic
#8B2E9C #9C8B2E #2E9C8B
tetradic
#8B2E9C #9C542E #3F9C2E #2E769C
square
#8B2E9C #9C542E #3F9C2E #2E769C
split-complementary
#8B2E9C #769C2E #2E9C54
monochromatic
#37123D #61206D #8B2E9C #B240C7 #C570D5

Accessibility & contrast

On white

7.07
#8B2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8B2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2E9C
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2E9C#FFFFFF#000000##FFFFFF
##8B2E9C1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00529F
Deuteranopia (green-blind)
#3A5C99
Tritanopia (blue-blind)
#8C4262
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8b2e9c;
/* rgb */ color: rgb(139, 46, 156);
/* oklch */ color: oklch(48.5% 0.183 321.0);
Tailwind
colors: {
  custom: {
    50: '#b06fba',
    500: '#8b2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #8b2e9c;
$custom-light: #b06fba;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2e9c",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 290.727,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48539,
    "c": 0.18321,
    "h": 321
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#8B2E9C
secondary
#76BC6A
accent
#DE4A61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8B2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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