#B5315E#B5315E

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

Color values

HEX#B5315E
RGBrgb(181, 49, 94)
HSLhsl(340, 57%, 45%)
HSVhsv(340, 73%, 71%)
CMYKcmyk(0%, 72.9%, 48.1%, 29%)
CIE-LABlab(42.51, 55.62, 5.26)
CIE-LCHlch(42.51, 55.87, 5.41°)
OKLaboklab(52.65% 0.17 0.014)
OKLCHoklch(52.65% 0.171 4.7)
XYZxyz(22.1766, 12.8315, 11.8964)
Luminance0.1283 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5315E #31B588
analogous
#B531A0 #B5315E #B54631
triadic
#B5315E #5EB531 #315EB5
tetradic
#B5315E #A0B531 #31B588 #4631B5
square
#B5315E #A0B531 #31B588 #4631B5
split-complementary
#B5315E #31B546 #31A0B5
monochromatic
#55172C #852445 #B5315E #D0537E #DD83A2

Accessibility & contrast

On white

5.89
#B5315E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5315E
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5315E#FFFFFF#000000##FFFFFF
##B5315E1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50545F
Deuteranopia (green-blind)
#736E5B
Tritanopia (blue-blind)
#C51844
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b5315e;
/* rgb */ color: rgb(181, 49, 94);
/* oklch */ color: oklch(52.7% 0.171 4.7);
Tailwind
colors: {
  custom: {
    50: '#d1748b',
    500: '#b5315e',
    950: '#000000',
  },
}
SCSS
$custom: #b5315e;
$custom-light: #d1748b;
$custom-dark: #000000;
JSON
{
  "hex": "#b5315e",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 339.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52652,
    "c": 0.17062,
    "h": 4.7
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

primary
#B5315E
secondary
#7BC7AD
accent
#E1AC47
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090C
muted
#837B7D

Preview Lab

Preview with #B5315E

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

Preview Lab → · Contrast checker → · Palette generator →

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