#8B2897#8B2897

#8B2897 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.186 H 323.2°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8B2897
RGBrgb(139, 40, 151)
HSLhsl(294, 58%, 37%)
HSVhsv(294, 74%, 59%)
CMYKcmyk(7.9%, 73.5%, 0%, 40.8%)
CIE-LABlab(36.45, 55.61, -39.95)
CIE-LCHlch(36.45, 68.47, 324.30°)
OKLaboklab(47.64% 0.1489 -0.1115)
OKLCHoklch(47.64% 0.186 323.2)
XYZxyz(16.9916, 9.2419, 30.1610)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2897 #349728
analogous
#542897 #8B2897 #97286B
triadic
#8B2897 #978B28 #28978B
tetradic
#8B2897 #975428 #349728 #286B97
square
#8B2897 #975428 #349728 #286B97
split-complementary
#8B2897 #6B9728 #289754
monochromatic
#320E36 #5E1B67 #8B2897 #B835C7 #C964D6

Accessibility & contrast

On white

7.37
#8B2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8B2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B2897
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2897#FFFFFF#000000##FFFFFF
##8B28971.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#3A5A94
Tritanopia (blue-blind)
#8D3C5D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8b2897;
/* rgb */ color: rgb(139, 40, 151);
/* oklch */ color: oklch(47.6% 0.186 323.2);
Tailwind
colors: {
  custom: {
    50: '#b06cb6',
    500: '#8b2897',
    950: '#000000',
  },
}
SCSS
$custom: #8b2897;
$custom-light: #b06cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2897",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 293.514,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47643,
    "c": 0.186,
    "h": 323.2
  },
  "luminance": 0.09241
}

Semantic roles & 50–950 ramp

primary
#8B2897
secondary
#69BC5F
accent
#E14657
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8B2897

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

Preview Lab → · Contrast checker → · Palette generator →

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