#B5397C#B5397C

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

Color values

HEX#B5397C
RGBrgb(181, 57, 124)
HSLhsl(328, 52%, 47%)
HSVhsv(328, 69%, 71%)
CMYKcmyk(0%, 68.5%, 31.5%, 29%)
CIE-LABlab(44.53, 55.82, -10.33)
CIE-LCHlch(44.53, 56.77, 349.51°)
OKLaboklab(54.45% 0.1703 -0.0268)
OKLCHoklch(54.45% 0.172 351.1)
XYZxyz(24.1585, 14.2079, 20.5350)
Luminance0.1421 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5397C #39B572
analogous
#B039B5 #B5397C #B5393E
triadic
#B5397C #7CB539 #397CB5
tetradic
#B5397C #B5B039 #39B572 #393EB5
square
#B5397C #B5B039 #39B572 #393EB5
split-complementary
#B5397C #3EB539 #39B5B0
monochromatic
#581C3C #862A5C #B5397C #CD5F9A #DB8DB7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5397C#FFFFFF#000000##FFFFFF
##B5397C1.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)
#4C5B7E
Deuteranopia (green-blind)
#6F7179
Tritanopia (blue-blind)
#C23255
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5397c;
/* rgb */ color: rgb(181, 57, 124);
/* oklch */ color: oklch(54.5% 0.172 351.1);
Tailwind
colors: {
  custom: {
    50: '#cf78a2',
    500: '#b5397c',
    950: '#000000',
  },
}
SCSS
$custom: #b5397c;
$custom-light: #cf78a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b5397c",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 327.581,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54452,
    "c": 0.17238,
    "h": 351.1
  },
  "luminance": 0.14205
}

Semantic roles & 50–950 ramp

primary
#B5397C
secondary
#84C6A2
accent
#DC8E4C
background
#FDF7F9
surface
#FAEEF2
border
#D3C9CC
text
#140A0F
muted
#837C7E

Preview Lab

Preview with #B5397C

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

Preview Lab → · Contrast checker → · Palette generator →

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