#B9317B#B9317B

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

Color values

HEX#B9317B
RGBrgb(185, 49, 123)
HSLhsl(327, 58%, 46%)
HSVhsv(327, 74%, 73%)
CMYKcmyk(0%, 73.5%, 33.5%, 27.5%)
CIE-LABlab(44.15, 59.72, -10.22)
CIE-LCHlch(44.15, 60.59, 350.29°)
OKLaboklab(54.3% 0.1828 -0.0264)
OKLCHoklch(54.3% 0.185 351.8)
XYZxyz(24.6825, 13.9439, 20.1267)
Luminance0.1394 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B9317B #31B96F
analogous
#B331B9 #B9317B #B93137
triadic
#B9317B #7BB931 #317BB9
tetradic
#B9317B #B9B331 #31B96F #3137B9
square
#B9317B #B9B331 #31B96F #3137B9
split-complementary
#B9317B #37B931 #31B9B3
monochromatic
#58173B #89245B #B9317B #D25599 #DF86B6

Accessibility & contrast

On white

5.54
#B9317B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B9317B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B9317B
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B9317B#FFFFFF#000000##FFFFFF
##B9317B1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#48597D
Deuteranopia (green-blind)
#6F7178
Tritanopia (blue-blind)
#C72652
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b9317b;
/* rgb */ color: rgb(185, 49, 123);
/* oklch */ color: oklch(54.3% 0.185 351.8);
Tailwind
colors: {
  custom: {
    50: '#d375a1',
    500: '#b9317b',
    950: '#000000',
  },
}
SCSS
$custom: #b9317b;
$custom-light: #d375a1;
$custom-dark: #000000;
JSON
{
  "hex": "#b9317b",
  "rgb": {
    "r": 185,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 327.353,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54295,
    "c": 0.18471,
    "h": 351.8
  },
  "luminance": 0.13941
}

Semantic roles & 50–950 ramp

primary
#B9317B
secondary
#7DC8A0
accent
#E18D46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #B9317B

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

Preview Lab → · Contrast checker → · Palette generator →

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