#B5397A#B5397A

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

Color values

HEX#B5397A
RGBrgb(181, 57, 122)
HSLhsl(329, 52%, 47%)
HSVhsv(329, 69%, 71%)
CMYKcmyk(0%, 68.5%, 32.6%, 29%)
CIE-LABlab(44.46, 55.58, -9.21)
CIE-LCHlch(44.46, 56.34, 350.59°)
OKLaboklab(54.38% 0.1697 -0.0238)
OKLCHoklch(54.38% 0.171 352)
XYZxyz(24.0333, 14.1578, 19.8757)
Luminance0.1416 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5397A #39B574
analogous
#B239B5 #B5397A #B5393C
triadic
#B5397A #7AB539 #397AB5
tetradic
#B5397A #B5B239 #39B574 #393CB5
square
#B5397A #B5B239 #39B574 #393CB5
split-complementary
#B5397A #3CB539 #39B5B2
monochromatic
#581C3B #862A5B #B5397A #CD5F98 #DB8DB6

Accessibility & contrast

On white

5.48
#B5397A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B5397A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5397A
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5397A#FFFFFF#000000##FFFFFF
##B5397A1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5B7C
Deuteranopia (green-blind)
#707177
Tritanopia (blue-blind)
#C23154
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5397a;
/* rgb */ color: rgb(181, 57, 122);
/* oklch */ color: oklch(54.4% 0.171 352.0);
Tailwind
colors: {
  custom: {
    50: '#cf78a0',
    500: '#b5397a',
    950: '#000000',
  },
}
SCSS
$custom: #b5397a;
$custom-light: #cf78a0;
$custom-dark: #000000;
JSON
{
  "hex": "#b5397a",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 328.548,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54376,
    "c": 0.17138,
    "h": 352
  },
  "luminance": 0.14155
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5397A

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

Preview Lab → · Contrast checker → · Palette generator →

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