#B5397D#B5397D

#B5397D is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.5% C 0.173 H 350.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B5397D
RGBrgb(181, 57, 125)
HSLhsl(327, 52%, 47%)
HSVhsv(327, 69%, 71%)
CMYKcmyk(0%, 68.5%, 30.9%, 29%)
CIE-LABlab(44.57, 55.94, -10.89)
CIE-LCHlch(44.57, 56.99, 348.98°)
OKLaboklab(54.49% 0.1706 -0.0283)
OKLCHoklch(54.49% 0.173 350.6)
XYZxyz(24.2221, 14.2333, 20.8698)
Luminance0.1423 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5397D #39B571
analogous
#AF39B5 #B5397D #B5393F
triadic
#B5397D #7DB539 #397DB5
tetradic
#B5397D #B5AF39 #39B571 #393FB5
square
#B5397D #B5AF39 #39B571 #393FB5
split-complementary
#B5397D #3FB539 #39B5AF
monochromatic
#581C3D #862A5D #B5397D #CD5F9B #DB8DB8

Accessibility & contrast

On white

5.46
#B5397D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B5397D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5397D
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5397D#FFFFFF#000000##FFFFFF
##B5397D1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5B7F
Deuteranopia (green-blind)
#6F717A
Tritanopia (blue-blind)
#C23256
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5397d;
/* rgb */ color: rgb(181, 57, 125);
/* oklch */ color: oklch(54.5% 0.173 350.6);
Tailwind
colors: {
  custom: {
    50: '#cf79a2',
    500: '#b5397d',
    950: '#000000',
  },
}
SCSS
$custom: #b5397d;
$custom-light: #cf79a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b5397d",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 327.097,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5449,
    "c": 0.17288,
    "h": 350.6
  },
  "luminance": 0.14231
}

Semantic roles & 50–950 ramp

primary
#B5397D
secondary
#84C6A2
accent
#DC8D4C
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#140A0F
muted
#837C7F

Preview Lab

Preview with #B5397D

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

Preview Lab → · Contrast checker → · Palette generator →

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