#8B2899#8B2899

#8B2899 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.188 H 322.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8B2899
RGBrgb(139, 40, 153)
HSLhsl(293, 59%, 38%)
HSVhsv(293, 74%, 60%)
CMYKcmyk(9.2%, 73.9%, 0%, 40%)
CIE-LABlab(36.57, 55.98, -40.97)
CIE-LCHlch(36.57, 69.37, 323.80°)
OKLaboklab(47.77% 0.1488 -0.1144)
OKLCHoklch(47.77% 0.188 322.4)
XYZxyz(17.1554, 9.3074, 31.0237)
Luminance0.0931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2899 #369928
analogous
#522899 #8B2899 #99286F
triadic
#8B2899 #998B28 #28998B
tetradic
#8B2899 #995228 #369928 #286F99
square
#8B2899 #995228 #369928 #286F99
split-complementary
#8B2899 #6F9928 #289952
monochromatic
#330F38 #5F1B68 #8B2899 #B735CA #C965D7

Accessibility & contrast

On white

7.34
#8B2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8B2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2899
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2899#FFFFFF#000000##FFFFFF
##8B28991.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#395A96
Tritanopia (blue-blind)
#8D3D5E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b2899;
/* rgb */ color: rgb(139, 40, 153);
/* oklch */ color: oklch(47.8% 0.188 322.4);
Tailwind
colors: {
  custom: {
    50: '#b06cb7',
    500: '#8b2899',
    950: '#000000',
  },
}
SCSS
$custom: #8b2899;
$custom-light: #b06cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2899",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 292.566,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4777,
    "c": 0.18771,
    "h": 322.4
  },
  "luminance": 0.09306
}

Semantic roles & 50–950 ramp

primary
#8B2899
secondary
#6CBD60
accent
#E24659
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2899

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

Preview Lab → · Contrast checker → · Palette generator →

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