#B5398A#B5398A

#B5398A is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.0% C 0.180 H 344.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B5398A
RGBrgb(181, 57, 138)
HSLhsl(321, 52%, 47%)
HSVhsv(321, 69%, 71%)
CMYKcmyk(0%, 68.5%, 23.8%, 29%)
CIE-LABlab(45.06, 57.61, -18.05)
CIE-LCHlch(45.06, 60.37, 342.60°)
OKLaboklab(55.02% 0.1737 -0.048)
OKLCHoklch(55.02% 0.18 344.5)
XYZxyz(25.1075, 14.5875, 25.5332)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5398A #39B564
analogous
#A239B5 #B5398A #B5394C
triadic
#B5398A #8AB539 #398AB5
tetradic
#B5398A #B5A239 #39B564 #394CB5
square
#B5398A #B5A239 #39B564 #394CB5
split-complementary
#B5398A #4CB539 #39B5A2
monochromatic
#581C43 #862A67 #B5398A #CD5FA6 #DB8DC0

Accessibility & contrast

On white

5.36
#B5398A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#B5398A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5398A
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5398A#FFFFFF#000000##FFFFFF
##B5398A1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465D8C
Deuteranopia (green-blind)
#6B7287
Tritanopia (blue-blind)
#C1385C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5398a;
/* rgb */ color: rgb(181, 57, 138);
/* oklch */ color: oklch(55.0% 0.180 344.5);
Tailwind
colors: {
  custom: {
    50: '#cf79ac',
    500: '#b5398a',
    950: '#000000',
  },
}
SCSS
$custom: #b5398a;
$custom-light: #cf79ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b5398a",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 320.806,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55019,
    "c": 0.18022,
    "h": 344.5
  },
  "luminance": 0.14585
}

Semantic roles & 50–950 ramp

primary
#B5398A
secondary
#84C69B
accent
#DC7E4C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140A10
muted
#837C7F

Preview Lab

Preview with #B5398A

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

Preview Lab → · Contrast checker → · Palette generator →

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