#B8317B#B8317B

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

Color values

HEX#B8317B
RGBrgb(184, 49, 123)
HSLhsl(327, 58%, 46%)
HSVhsv(327, 73%, 72%)
CMYKcmyk(0%, 73.4%, 33.2%, 27.8%)
CIE-LABlab(43.97, 59.45, -10.51)
CIE-LCHlch(43.97, 60.37, 349.98°)
OKLaboklab(54.13% 0.1819 -0.0272)
OKLCHoklch(54.13% 0.184 351.5)
XYZxyz(24.4420, 13.8199, 20.1154)
Luminance0.1382 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B8317B #31B86E
analogous
#B131B8 #B8317B #B83137
triadic
#B8317B #7BB831 #317BB8
tetradic
#B8317B #B8B131 #31B86E #3137B8
square
#B8317B #B8B131 #31B86E #3137B8
split-complementary
#B8317B #37B831 #31B8B1
monochromatic
#57173A #88245B #B8317B #D25599 #DE85B6

Accessibility & contrast

On white

5.58
#B8317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B8317B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B8317B
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B8317B#FFFFFF#000000##FFFFFF
##B8317B1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48587D
Deuteranopia (green-blind)
#6E7178
Tritanopia (blue-blind)
#C62752
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b8317b;
/* rgb */ color: rgb(184, 49, 123);
/* oklch */ color: oklch(54.1% 0.184 351.5);
Tailwind
colors: {
  custom: {
    50: '#d275a1',
    500: '#b8317b',
    950: '#000000',
  },
}
SCSS
$custom: #b8317b;
$custom-light: #d275a1;
$custom-dark: #000000;
JSON
{
  "hex": "#b8317b",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 327.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54131,
    "c": 0.18394,
    "h": 351.5
  },
  "luminance": 0.13817
}

Semantic roles & 50–950 ramp

primary
#B8317B
secondary
#7DC89F
accent
#E18C47
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #B8317B

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

Preview Lab → · Contrast checker → · Palette generator →

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