#B5397F#B5397F

#B5397F is a mid, vivid pink. Relative luminance 0.143; OKLCH L 54.6% C 0.174 H 349.6°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#B5397F
RGBrgb(181, 57, 127)
HSLhsl(326, 52%, 47%)
HSVhsv(326, 69%, 71%)
CMYKcmyk(0%, 68.5%, 29.8%, 29%)
CIE-LABlab(44.64, 56.19, -12.00)
CIE-LCHlch(44.64, 57.46, 347.94°)
OKLaboklab(54.57% 0.1711 -0.0314)
OKLCHoklch(54.57% 0.174 349.6)
XYZxyz(24.3511, 14.2850, 21.5494)
Luminance0.1428 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5397F #39B56F
analogous
#AD39B5 #B5397F #B53941
triadic
#B5397F #7FB539 #397FB5
tetradic
#B5397F #B5AD39 #39B56F #3941B5
square
#B5397F #B5AD39 #39B56F #3941B5
split-complementary
#B5397F #41B539 #39B5AD
monochromatic
#581C3E #862A5E #B5397F #CD5F9D #DB8DB9

Accessibility & contrast

On white

5.45
#B5397F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B5397F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5397F
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5397F#FFFFFF#000000##FFFFFF
##B5397F1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5C81
Deuteranopia (green-blind)
#6E727C
Tritanopia (blue-blind)
#C23357
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b5397f;
/* rgb */ color: rgb(181, 57, 127);
/* oklch */ color: oklch(54.6% 0.174 349.6);
Tailwind
colors: {
  custom: {
    50: '#cf79a4',
    500: '#b5397f',
    950: '#000000',
  },
}
SCSS
$custom: #b5397f;
$custom-light: #cf79a4;
$custom-dark: #000000;
JSON
{
  "hex": "#b5397f",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 326.129,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54568,
    "c": 0.17393,
    "h": 349.6
  },
  "luminance": 0.14282
}

Semantic roles & 50–950 ramp

primary
#B5397F
secondary
#84C6A1
accent
#DC8B4C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140A0F
muted
#837C7F

Preview Lab

Preview with #B5397F

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

Preview Lab → · Contrast checker → · Palette generator →

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