#B5398B#B5398B

#B5398B is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.1% C 0.181 H 344.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B5398B
RGBrgb(181, 57, 139)
HSLhsl(320, 52%, 47%)
HSVhsv(320, 69%, 71%)
CMYKcmyk(0%, 68.5%, 23.2%, 29%)
CIE-LABlab(45.10, 57.75, -18.59)
CIE-LCHlch(45.10, 60.67, 342.15°)
OKLaboklab(55.06% 0.1739 -0.0495)
OKLCHoklch(55.06% 0.181 344.1)
XYZxyz(25.1803, 14.6166, 25.9163)
Luminance0.1461 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5398B #39B563
analogous
#A139B5 #B5398B #B5394D
triadic
#B5398B #8BB539 #398BB5
tetradic
#B5398B #B5A139 #39B563 #394DB5
square
#B5398B #B5A139 #39B563 #394DB5
split-complementary
#B5398B #4DB539 #39B5A1
monochromatic
#581C44 #862A67 #B5398B #CD5FA7 #DB8DC1

Accessibility & contrast

On white

5.35
#B5398B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5398B
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5398B#FFFFFF#000000##FFFFFF
##B5398B1.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465E8D
Deuteranopia (green-blind)
#6B7288
Tritanopia (blue-blind)
#C1385D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5398b;
/* rgb */ color: rgb(181, 57, 139);
/* oklch */ color: oklch(55.1% 0.181 344.1);
Tailwind
colors: {
  custom: {
    50: '#cf79ad',
    500: '#b5398b',
    950: '#000000',
  },
}
SCSS
$custom: #b5398b;
$custom-light: #cf79ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b5398b",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 320.323,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55062,
    "c": 0.18084,
    "h": 344.1
  },
  "luminance": 0.14614
}

Semantic roles & 50–950 ramp

primary
#B5398B
secondary
#84C69A
accent
#DC7D4C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140A10
muted
#837C7F

Preview Lab

Preview with #B5398B

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

Preview Lab → · Contrast checker → · Palette generator →

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