#B5315A#B5315A

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

Color values

HEX#B5315A
RGBrgb(181, 49, 90)
HSLhsl(341, 57%, 45%)
HSVhsv(341, 73%, 71%)
CMYKcmyk(0%, 72.9%, 50.3%, 29%)
CIE-LABlab(42.40, 55.27, 7.61)
CIE-LCHlch(42.40, 55.79, 7.84°)
OKLaboklab(52.54% 0.1686 0.0198)
OKLCHoklch(52.54% 0.17 6.7)
XYZxyz(22.0017, 12.7615, 10.9755)
Luminance0.1276 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5315A #31B58C
analogous
#B5319C #B5315A #B54A31
triadic
#B5315A #5AB531 #315AB5
tetradic
#B5315A #9CB531 #31B58C #4A31B5
square
#B5315A #9CB531 #31B58C #4A31B5
split-complementary
#B5315A #31B54A #319CB5
monochromatic
#55172A #852442 #B5315A #D0537A #DD839F

Accessibility & contrast

On white

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

On black

3.55
#B5315A on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B5315A#FFFFFF#000000##FFFFFF
##B5315A1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51535B
Deuteranopia (green-blind)
#736E57
Tritanopia (blue-blind)
#C51542
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b5315a;
/* rgb */ color: rgb(181, 49, 90);
/* oklch */ color: oklch(52.5% 0.170 6.7);
Tailwind
colors: {
  custom: {
    50: '#d17488',
    500: '#b5315a',
    950: '#000000',
  },
}
SCSS
$custom: #b5315a;
$custom-light: #d17488;
$custom-dark: #000000;
JSON
{
  "hex": "#b5315a",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 90
  },
  "hsl": {
    "h": 341.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52538,
    "c": 0.16972,
    "h": 6.7
  },
  "luminance": 0.12759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5315A

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

Preview Lab → · Contrast checker → · Palette generator →

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