#B5315D#B5315D

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

Color values

HEX#B5315D
RGBrgb(181, 49, 93)
HSLhsl(340, 57%, 45%)
HSVhsv(340, 73%, 71%)
CMYKcmyk(0%, 72.9%, 48.6%, 29%)
CIE-LABlab(42.48, 55.53, 5.85)
CIE-LCHlch(42.48, 55.84, 6.01°)
OKLaboklab(52.62% 0.1697 0.0155)
OKLCHoklch(52.62% 0.17 5.2)
XYZxyz(22.1320, 12.8136, 11.6616)
Luminance0.1281 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5315D #31B589
analogous
#B5319F #B5315D #B54731
triadic
#B5315D #5DB531 #315DB5
tetradic
#B5315D #9FB531 #31B589 #4731B5
square
#B5315D #9FB531 #31B589 #4731B5
split-complementary
#B5315D #31B547 #319FB5
monochromatic
#55172C #852444 #B5315D #D0537D #DD83A1

Accessibility & contrast

On white

5.90
#B5315D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5315D
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5315D#FFFFFF#000000##FFFFFF
##B5315D1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50545E
Deuteranopia (green-blind)
#736E5A
Tritanopia (blue-blind)
#C51743
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b5315d;
/* rgb */ color: rgb(181, 49, 93);
/* oklch */ color: oklch(52.6% 0.170 5.2);
Tailwind
colors: {
  custom: {
    50: '#d1748a',
    500: '#b5315d',
    950: '#000000',
  },
}
SCSS
$custom: #b5315d;
$custom-light: #d1748a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5315d",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 340,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52623,
    "c": 0.17038,
    "h": 5.2
  },
  "luminance": 0.12811
}

Semantic roles & 50–950 ramp

primary
#B5315D
secondary
#7BC7AE
accent
#E1AD47
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090B
muted
#837B7C

Preview Lab

Preview with #B5315D

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

Preview Lab → · Contrast checker → · Palette generator →

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