#B8317E#B8317E

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

Color values

HEX#B8317E
RGBrgb(184, 49, 126)
HSLhsl(326, 58%, 46%)
HSVhsv(326, 73%, 72%)
CMYKcmyk(0%, 73.4%, 31.5%, 27.8%)
CIE-LABlab(44.08, 59.80, -12.18)
CIE-LCHlch(44.08, 61.03, 348.49°)
OKLaboklab(54.25% 0.1827 -0.0317)
OKLCHoklch(54.25% 0.185 350.1)
XYZxyz(24.6327, 13.8962, 21.1196)
Luminance0.1389 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8317E #31B86B
analogous
#AE31B8 #B8317E #B8313A
triadic
#B8317E #7EB831 #317EB8
tetradic
#B8317E #B8AE31 #31B86B #313AB8
square
#B8317E #B8AE31 #31B86B #313AB8
split-complementary
#B8317E #3AB831 #31B8AE
monochromatic
#57173C #88245D #B8317E #D2559C #DE85B8

Accessibility & contrast

On white

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

On black

3.78
#B8317E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B8317E#FFFFFF#000000##FFFFFF
##B8317E1.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475980
Deuteranopia (green-blind)
#6E717B
Tritanopia (blue-blind)
#C62953
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b8317e;
/* rgb */ color: rgb(184, 49, 126);
/* oklch */ color: oklch(54.2% 0.185 350.1);
Tailwind
colors: {
  custom: {
    50: '#d275a3',
    500: '#b8317e',
    950: '#000000',
  },
}
SCSS
$custom: #b8317e;
$custom-light: #d275a3;
$custom-dark: #000000;
JSON
{
  "hex": "#b8317e",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 325.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54248,
    "c": 0.18544,
    "h": 350.1
  },
  "luminance": 0.13893
}

Semantic roles & 50–950 ramp

primary
#B8317E
secondary
#7DC89D
accent
#E18947
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #B8317E

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

Preview Lab → · Contrast checker → · Palette generator →

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