#B5397E#B5397E

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

Color values

HEX#B5397E
RGBrgb(181, 57, 126)
HSLhsl(327, 52%, 47%)
HSVhsv(327, 69%, 71%)
CMYKcmyk(0%, 68.5%, 30.4%, 29%)
CIE-LABlab(44.60, 56.07, -11.45)
CIE-LCHlch(44.60, 57.22, 348.46°)
OKLaboklab(54.53% 0.1708 -0.0298)
OKLCHoklch(54.53% 0.173 350.1)
XYZxyz(24.2863, 14.2590, 21.2079)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5397E #39B570
analogous
#AE39B5 #B5397E #B53940
triadic
#B5397E #7EB539 #397EB5
tetradic
#B5397E #B5AE39 #39B570 #3940B5
square
#B5397E #B5AE39 #39B570 #3940B5
split-complementary
#B5397E #40B539 #39B5AE
monochromatic
#581C3D #862A5E #B5397E #CD5F9C #DB8DB9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5397E#FFFFFF#000000##FFFFFF
##B5397E1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5B80
Deuteranopia (green-blind)
#6E727B
Tritanopia (blue-blind)
#C23356
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5397e;
/* rgb */ color: rgb(181, 57, 126);
/* oklch */ color: oklch(54.5% 0.173 350.1);
Tailwind
colors: {
  custom: {
    50: '#cf79a3',
    500: '#b5397e',
    950: '#000000',
  },
}
SCSS
$custom: #b5397e;
$custom-light: #cf79a3;
$custom-dark: #000000;
JSON
{
  "hex": "#b5397e",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 326.613,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.54529,
    "c": 0.17341,
    "h": 350.1
  },
  "luminance": 0.14256
}

Semantic roles & 50–950 ramp

primary
#B5397E
secondary
#84C6A1
accent
#DC8C4C
background
#FDF7FA
surface
#FAEEF3
border
#D3C9CD
text
#140A0F
muted
#837C7F

Preview Lab

Preview with #B5397E

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

Preview Lab → · Contrast checker → · Palette generator →

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