#B8317C#B8317C

#B8317C is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.2% C 0.184 H 351.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#B8317C
RGBrgb(184, 49, 124)
HSLhsl(327, 58%, 46%)
HSVhsv(327, 73%, 72%)
CMYKcmyk(0%, 73.4%, 32.6%, 27.8%)
CIE-LABlab(44.01, 59.57, -11.06)
CIE-LCHlch(44.01, 60.59, 349.48°)
OKLaboklab(54.17% 0.1822 -0.0287)
OKLCHoklch(54.17% 0.184 351)
XYZxyz(24.5049, 13.8451, 20.4468)
Luminance0.1384 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8317C #31B86D
analogous
#B031B8 #B8317C #B83138
triadic
#B8317C #7CB831 #317CB8
tetradic
#B8317C #B8B031 #31B86D #3138B8
square
#B8317C #B8B031 #31B86D #3138B8
split-complementary
#B8317C #38B831 #31B8B0
monochromatic
#57173B #88245B #B8317C #D2559A #DE85B7

Accessibility & contrast

On white

5.57
#B8317C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#B8317C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8317C
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8317C#FFFFFF#000000##FFFFFF
##B8317C1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48597E
Deuteranopia (green-blind)
#6E7179
Tritanopia (blue-blind)
#C62852
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b8317c;
/* rgb */ color: rgb(184, 49, 124);
/* oklch */ color: oklch(54.2% 0.184 351.0);
Tailwind
colors: {
  custom: {
    50: '#d275a2',
    500: '#b8317c',
    950: '#000000',
  },
}
SCSS
$custom: #b8317c;
$custom-light: #d275a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b8317c",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 326.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5417,
    "c": 0.18443,
    "h": 351
  },
  "luminance": 0.13842
}

Semantic roles & 50–950 ramp

primary
#B8317C
secondary
#7DC89E
accent
#E18B47
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090F
muted
#837B7E

Preview Lab

Preview with #B8317C

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

Preview Lab → · Contrast checker → · Palette generator →

#B8317C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva