#8B315E#8B315E

#8B315E is a mid, vivid pink. Relative luminance 0.085; OKLCH L 45.7% C 0.131 H 352.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#8B315E
RGBrgb(139, 49, 94)
HSLhsl(330, 48%, 37%)
HSVhsv(330, 65%, 55%)
CMYKcmyk(0%, 64.7%, 32.4%, 45.5%)
CIE-LABlab(34.99, 42.78, -6.62)
CIE-LCHlch(34.99, 43.29, 351.20°)
OKLaboklab(45.68% 0.1303 -0.017)
OKLCHoklch(45.68% 0.131 352.6)
XYZxyz(13.7668, 8.4952, 11.5022)
Luminance0.0849 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B315E #318B5E
analogous
#8B318B #8B315E #8B3131
triadic
#8B315E #5E8B31 #315E8B
tetradic
#8B315E #8B8B31 #318B5E #31318B
square
#8B315E #8B8B31 #318B5E #31318B
split-complementary
#8B315E #318B31 #318B8B
monochromatic
#311121 #5E213F #8B315E #B8417D #CB6B9B

Accessibility & contrast

On white

7.78
#8B315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#8B315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B315E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B315E#FFFFFF#000000##FFFFFF
##8B315E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E485F
Deuteranopia (green-blind)
#57585C
Tritanopia (blue-blind)
#952C43
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8b315e;
/* rgb */ color: rgb(139, 49, 94);
/* oklch */ color: oklch(45.7% 0.131 352.6);
Tailwind
colors: {
  custom: {
    50: '#b06f8b',
    500: '#8b315e',
    950: '#000000',
  },
}
SCSS
$custom: #8b315e;
$custom-light: #b06f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#8b315e",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 330,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45685,
    "c": 0.13143,
    "h": 352.6
  },
  "luminance": 0.08494
}

Semantic roles & 50–950 ramp

primary
#8B315E
secondary
#65B28C
accent
#D79450
background
#FBF6F8
surface
#F6ECF0
border
#D0C7CB
text
#11080C
muted
#807B7D

Preview Lab

Preview with #8B315E

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

Preview Lab → · Contrast checker → · Palette generator →

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