#B41798#B41798

#B41798 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.1% C 0.221 H 337.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#B41798
RGBrgb(180, 23, 152)
HSLhsl(311, 77%, 40%)
HSVhsv(311, 87%, 71%)
CMYKcmyk(0%, 87.2%, 15.6%, 29.4%)
CIE-LABlab(42.13, 68.92, -31.09)
CIE-LCHlch(42.13, 75.61, 335.72°)
OKLaboklab(53.07% 0.2041 -0.0847)
OKLCHoklch(53.07% 0.221 337.5)
XYZxyz(24.7969, 12.5856, 30.8230)
Luminance0.1258 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B41798 #17B433
analogous
#8217B4 #B41798 #B41749
triadic
#B41798 #98B417 #1798B4
tetradic
#B41798 #B48217 #17B433 #1749B4
square
#B41798 #B48217 #17B433 #1749B4
split-complementary
#B41798 #49B417 #17B482
monochromatic
#47093C #7E106A #B41798 #E325C1 #EA5BD1

Accessibility & contrast

On white

5.97
#B41798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B41798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B41798
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B41798#FFFFFF#000000##FFFFFF
##B417981.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559B
Deuteranopia (green-blind)
#5B6B95
Tritanopia (blue-blind)
#BE255B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b41798;
/* rgb */ color: rgb(180, 23, 152);
/* oklch */ color: oklch(53.1% 0.221 337.5);
Tailwind
colors: {
  custom: {
    50: '#cf6db6',
    500: '#b41798',
    950: '#000000',
  },
}
SCSS
$custom: #b41798;
$custom-light: #cf6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b41798",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 310.701,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53073,
    "c": 0.22101,
    "h": 337.5
  },
  "luminance": 0.12583
}

Semantic roles & 50–950 ramp

primary
#B41798
secondary
#59CE6E
accent
#F45634
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B41798

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

Preview Lab → · Contrast checker → · Palette generator →

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