#8B3161#8B3161

#8B3161 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 45.8% C 0.133 H 350.6°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#8B3161
RGBrgb(139, 49, 97)
HSLhsl(328, 48%, 37%)
HSVhsv(328, 65%, 55%)
CMYKcmyk(0%, 64.7%, 30.2%, 45.5%)
CIE-LABlab(35.10, 43.18, -8.38)
CIE-LCHlch(35.10, 43.99, 349.02°)
OKLaboklab(45.8% 0.1312 -0.0218)
OKLCHoklch(45.8% 0.133 350.6)
XYZxyz(13.9041, 8.5501, 12.2250)
Luminance0.0855 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3161 #318B5B
analogous
#88318B #8B3161 #8B3134
triadic
#8B3161 #618B31 #31618B
tetradic
#8B3161 #8B8831 #318B5B #31348B
square
#8B3161 #8B8831 #318B5B #31348B
split-complementary
#8B3161 #348B31 #318B88
monochromatic
#311122 #5E2141 #8B3161 #B84181 #CB6B9E

Accessibility & contrast

On white

7.75
#8B3161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8B3161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B3161
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3161#FFFFFF#000000##FFFFFF
##8B31611.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D4862
Deuteranopia (green-blind)
#56585F
Tritanopia (blue-blind)
#952D45
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8b3161;
/* rgb */ color: rgb(139, 49, 97);
/* oklch */ color: oklch(45.8% 0.133 350.6);
Tailwind
colors: {
  custom: {
    50: '#b06f8d',
    500: '#8b3161',
    950: '#000000',
  },
}
SCSS
$custom: #8b3161;
$custom-light: #b06f8d;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3161",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 97
  },
  "hsl": {
    "h": 328,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45802,
    "c": 0.13303,
    "h": 350.6
  },
  "luminance": 0.08549
}

Semantic roles & 50–950 ramp

primary
#8B3161
secondary
#65B289
accent
#D78F50
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080C
muted
#807B7D

Preview Lab

Preview with #8B3161

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

Preview Lab → · Contrast checker → · Palette generator →

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