#B8317D#B8317D

#B8317D is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.2% C 0.185 H 350.6°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B8317D
RGBrgb(184, 49, 125)
HSLhsl(326, 58%, 46%)
HSVhsv(326, 73%, 72%)
CMYKcmyk(0%, 73.4%, 32.1%, 27.8%)
CIE-LABlab(44.05, 59.68, -11.62)
CIE-LCHlch(44.05, 60.80, 348.98°)
OKLaboklab(54.21% 0.1824 -0.0302)
OKLCHoklch(54.21% 0.185 350.6)
XYZxyz(24.5685, 13.8705, 20.7815)
Luminance0.1387 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8317D #31B86C
analogous
#AF31B8 #B8317D #B8313A
triadic
#B8317D #7DB831 #317DB8
tetradic
#B8317D #B8AF31 #31B86C #313AB8
square
#B8317D #B8AF31 #31B86C #313AB8
split-complementary
#B8317D #3AB831 #31B8AF
monochromatic
#57173B #88245C #B8317D #D2559B #DE85B7

Accessibility & contrast

On white

5.56
#B8317D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B8317D
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8317D#FFFFFF#000000##FFFFFF
##B8317D1.005.563.775.56
#FFFFFF5.561.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#47597F
Deuteranopia (green-blind)
#6E717A
Tritanopia (blue-blind)
#C62853
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b8317d;
/* rgb */ color: rgb(184, 49, 125);
/* oklch */ color: oklch(54.2% 0.185 350.6);
Tailwind
colors: {
  custom: {
    50: '#d275a2',
    500: '#b8317d',
    950: '#000000',
  },
}
SCSS
$custom: #b8317d;
$custom-light: #d275a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b8317d",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 326.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54208,
    "c": 0.18493,
    "h": 350.6
  },
  "luminance": 0.13868
}

Semantic roles & 50–950 ramp

primary
#B8317D
secondary
#7DC89E
accent
#E18A47
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #B8317D

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

Preview Lab → · Contrast checker → · Palette generator →

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