#B8316C#B8316C

#B8316C is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.6% C 0.178 H 358.5°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B8316C
RGBrgb(184, 49, 108)
HSLhsl(334, 58%, 46%)
HSVhsv(334, 73%, 72%)
CMYKcmyk(0%, 73.4%, 41.3%, 27.8%)
CIE-LABlab(43.47, 57.82, -2.00)
CIE-LCHlch(43.47, 57.86, 358.02°)
OKLaboklab(53.59% 0.1775 -0.0045)
OKLCHoklch(53.59% 0.178 358.5)
XYZxyz(23.5739, 13.4727, 15.5435)
Luminance0.1347 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8316C #31B87D
analogous
#B831AF #B8316C #B83A31
triadic
#B8316C #6CB831 #316CB8
tetradic
#B8316C #AFB831 #31B87D #3A31B8
square
#B8316C #AFB831 #31B87D #3A31B8
split-complementary
#B8316C #31B83A #31AFB8
monochromatic
#571733 #882450 #B8316C #D2558B #DE85AC

Accessibility & contrast

On white

5.68
#B8316C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B8316C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8316C
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8316C#FFFFFF#000000##FFFFFF
##B8316C1.005.683.695.68
#FFFFFF5.681.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D566D
Deuteranopia (green-blind)
#727069
Tritanopia (blue-blind)
#C71E4A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b8316c;
/* rgb */ color: rgb(184, 49, 108);
/* oklch */ color: oklch(53.6% 0.178 358.5);
Tailwind
colors: {
  custom: {
    50: '#d27596',
    500: '#b8316c',
    950: '#000000',
  },
}
SCSS
$custom: #b8316c;
$custom-light: #d27596;
$custom-dark: #000000;
JSON
{
  "hex": "#b8316c",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 333.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.53594,
    "c": 0.17754,
    "h": 358.5
  },
  "luminance": 0.1347
}

Semantic roles & 50–950 ramp

primary
#B8316C
secondary
#7DC8A7
accent
#E19E47
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15090D
muted
#837B7E

Preview Lab

Preview with #B8316C

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

Preview Lab → · Contrast checker → · Palette generator →

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