#B5315F#B5315F

#B5315F is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.7% C 0.171 H 4.2°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#B5315F
RGBrgb(181, 49, 95)
HSLhsl(339, 57%, 45%)
HSVhsv(339, 73%, 71%)
CMYKcmyk(0%, 72.9%, 47.5%, 29%)
CIE-LABlab(42.54, 55.71, 4.68)
CIE-LCHlch(42.54, 55.91, 4.80°)
OKLaboklab(52.68% 0.1704 0.0126)
OKLCHoklch(52.68% 0.171 4.2)
XYZxyz(22.2217, 12.8495, 12.1343)
Luminance0.1285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5315F #31B587
analogous
#B531A1 #B5315F #B54531
triadic
#B5315F #5FB531 #315FB5
tetradic
#B5315F #A1B531 #31B587 #4531B5
square
#B5315F #A1B531 #31B587 #4531B5
split-complementary
#B5315F #31B545 #31A1B5
monochromatic
#55172C #852446 #B5315F #D0537F #DD83A2

Accessibility & contrast

On white

5.88
#B5315F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#B5315F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5315F
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5315F#FFFFFF#000000##FFFFFF
##B5315F1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505460
Deuteranopia (green-blind)
#736E5C
Tritanopia (blue-blind)
#C51844
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b5315f;
/* rgb */ color: rgb(181, 49, 95);
/* oklch */ color: oklch(52.7% 0.171 4.2);
Tailwind
colors: {
  custom: {
    50: '#d1748c',
    500: '#b5315f',
    950: '#000000',
  },
}
SCSS
$custom: #b5315f;
$custom-light: #d1748c;
$custom-dark: #000000;
JSON
{
  "hex": "#b5315f",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 95
  },
  "hsl": {
    "h": 339.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52681,
    "c": 0.17087,
    "h": 4.2
  },
  "luminance": 0.12847
}

Semantic roles & 50–950 ramp

primary
#B5315F
secondary
#7BC7AC
accent
#E1AB47
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090C
muted
#837B7D

Preview Lab

Preview with #B5315F

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

Preview Lab → · Contrast checker → · Palette generator →

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