#B5315B#B5315B

#B5315B is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.6% C 0.170 H 6.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#B5315B
RGBrgb(181, 49, 91)
HSLhsl(341, 57%, 45%)
HSVhsv(341, 73%, 71%)
CMYKcmyk(0%, 72.9%, 49.7%, 29%)
CIE-LABlab(42.43, 55.36, 7.03)
CIE-LCHlch(42.43, 55.80, 7.23°)
OKLaboklab(52.57% 0.1689 0.0184)
OKLCHoklch(52.57% 0.17 6.2)
XYZxyz(22.0446, 12.7787, 11.2012)
Luminance0.1278 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5315B #31B58B
analogous
#B5319D #B5315B #B54931
triadic
#B5315B #5BB531 #315BB5
tetradic
#B5315B #9DB531 #31B58B #4931B5
square
#B5315B #9DB531 #31B58B #4931B5
split-complementary
#B5315B #31B549 #319DB5
monochromatic
#55172B #852443 #B5315B #D0537B #DD83A0

Accessibility & contrast

On white

5.91
#B5315B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B5315B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5315B
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5315B#FFFFFF#000000##FFFFFF
##B5315B1.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51535C
Deuteranopia (green-blind)
#736E58
Tritanopia (blue-blind)
#C51642
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b5315b;
/* rgb */ color: rgb(181, 49, 91);
/* oklch */ color: oklch(52.6% 0.170 6.2);
Tailwind
colors: {
  custom: {
    50: '#d17489',
    500: '#b5315b',
    950: '#000000',
  },
}
SCSS
$custom: #b5315b;
$custom-light: #d17489;
$custom-dark: #000000;
JSON
{
  "hex": "#b5315b",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 91
  },
  "hsl": {
    "h": 340.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.16994,
    "h": 6.2
  },
  "luminance": 0.12776
}

Semantic roles & 50–950 ramp

primary
#B5315B
secondary
#7BC7AF
accent
#E1B047
background
#FDF7F8
surface
#FBEDEF
border
#D4C8CA
text
#15090B
muted
#837B7C

Preview Lab

Preview with #B5315B

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

Preview Lab → · Contrast checker → · Palette generator →

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