#8B315B#8B315B

#8B315B is a mid, vivid pink. Relative luminance 0.084; OKLCH L 45.6% C 0.130 H 354.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#8B315B
RGBrgb(139, 49, 91)
HSLhsl(332, 48%, 37%)
HSVhsv(332, 65%, 55%)
CMYKcmyk(0%, 64.7%, 34.5%, 45.5%)
CIE-LABlab(34.89, 42.40, -4.86)
CIE-LCHlch(34.89, 42.68, 353.46°)
OKLaboklab(45.57% 0.1294 -0.0123)
OKLCHoklch(45.57% 0.13 354.6)
XYZxyz(13.6348, 8.4424, 10.8070)
Luminance0.0844 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B315B #318B61
analogous
#8B3188 #8B315B #8B3431
triadic
#8B315B #5B8B31 #315B8B
tetradic
#8B315B #888B31 #318B61 #34318B
square
#8B315B #888B31 #318B61 #34318B
split-complementary
#8B315B #318B34 #31888B
monochromatic
#311120 #5E213D #8B315B #B84179 #CB6B98

Accessibility & contrast

On white

7.81
#8B315B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#8B315B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B315B
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B315B#FFFFFF#000000##FFFFFF
##8B315B1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F485C
Deuteranopia (green-blind)
#585859
Tritanopia (blue-blind)
#962B42
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b315b;
/* rgb */ color: rgb(139, 49, 91);
/* oklch */ color: oklch(45.6% 0.130 354.6);
Tailwind
colors: {
  custom: {
    50: '#b06f89',
    500: '#8b315b',
    950: '#000000',
  },
}
SCSS
$custom: #8b315b;
$custom-light: #b06f89;
$custom-dark: #000000;
JSON
{
  "hex": "#8b315b",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 332,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45572,
    "c": 0.12994,
    "h": 354.6
  },
  "luminance": 0.08441
}

Semantic roles & 50–950 ramp

primary
#8B315B
secondary
#65B28E
accent
#D79850
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080B
muted
#807B7C

Preview Lab

Preview with #8B315B

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

Preview Lab → · Contrast checker → · Palette generator →

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