#B5397B#B5397B

#B5397B is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.4% C 0.172 H 351.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#B5397B
RGBrgb(181, 57, 123)
HSLhsl(328, 52%, 47%)
HSVhsv(328, 69%, 71%)
CMYKcmyk(0%, 68.5%, 32%, 29%)
CIE-LABlab(44.49, 55.70, -9.77)
CIE-LCHlch(44.49, 56.55, 350.05°)
OKLaboklab(54.41% 0.17 -0.0253)
OKLCHoklch(54.41% 0.172 351.5)
XYZxyz(24.0956, 14.1828, 20.2037)
Luminance0.1418 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5397B #39B573
analogous
#B139B5 #B5397B #B5393D
triadic
#B5397B #7BB539 #397BB5
tetradic
#B5397B #B5B139 #39B573 #393DB5
square
#B5397B #B5B139 #39B573 #393DB5
split-complementary
#B5397B #3DB539 #39B5B1
monochromatic
#581C3C #862A5B #B5397B #CD5F99 #DB8DB7

Accessibility & contrast

On white

5.47
#B5397B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B5397B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5397B
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5397B#FFFFFF#000000##FFFFFF
##B5397B1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5B7D
Deuteranopia (green-blind)
#6F7178
Tritanopia (blue-blind)
#C23155
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5397b;
/* rgb */ color: rgb(181, 57, 123);
/* oklch */ color: oklch(54.4% 0.172 351.5);
Tailwind
colors: {
  custom: {
    50: '#cf78a1',
    500: '#b5397b',
    950: '#000000',
  },
}
SCSS
$custom: #b5397b;
$custom-light: #cf78a1;
$custom-dark: #000000;
JSON
{
  "hex": "#b5397b",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 328.065,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54414,
    "c": 0.17187,
    "h": 351.5
  },
  "luminance": 0.1418
}

Semantic roles & 50–950 ramp

primary
#B5397B
secondary
#84C6A3
accent
#DC8F4C
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#140A0E
muted
#837C7E

Preview Lab

Preview with #B5397B

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

Preview Lab → · Contrast checker → · Palette generator →

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