#B5398D#B5398D

#B5398D is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.1% C 0.182 H 343.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B5398D
RGBrgb(181, 57, 141)
HSLhsl(319, 52%, 47%)
HSVhsv(319, 69%, 71%)
CMYKcmyk(0%, 68.5%, 22.1%, 29%)
CIE-LABlab(45.19, 58.02, -19.68)
CIE-LCHlch(45.19, 61.26, 341.26°)
OKLaboklab(55.15% 0.1743 -0.0526)
OKLCHoklch(55.15% 0.182 343.2)
XYZxyz(25.3277, 14.6756, 26.6929)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5398D #39B561
analogous
#9F39B5 #B5398D #B5394F
triadic
#B5398D #8DB539 #398DB5
tetradic
#B5398D #B59F39 #39B561 #394FB5
square
#B5398D #B59F39 #39B561 #394FB5
split-complementary
#B5398D #4FB539 #39B59F
monochromatic
#581C44 #862A69 #B5398D #CD5FA9 #DB8DC2

Accessibility & contrast

On white

5.34
#B5398D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B5398D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5398D
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5398D#FFFFFF#000000##FFFFFF
##B5398D1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455E8F
Deuteranopia (green-blind)
#6A728A
Tritanopia (blue-blind)
#C0395E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5398d;
/* rgb */ color: rgb(181, 57, 141);
/* oklch */ color: oklch(55.1% 0.182 343.2);
Tailwind
colors: {
  custom: {
    50: '#cf79ae',
    500: '#b5398d',
    950: '#000000',
  },
}
SCSS
$custom: #b5398d;
$custom-light: #cf79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b5398d",
  "rgb": {
    "r": 181,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 319.355,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55149,
    "c": 0.18209,
    "h": 343.2
  },
  "luminance": 0.14673
}

Semantic roles & 50–950 ramp

primary
#B5398D
secondary
#84C699
accent
#DC7A4C
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140A10
muted
#837C7F

Preview Lab

Preview with #B5398D

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

Preview Lab → · Contrast checker → · Palette generator →

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