#B41797#B41797

#B41797 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.0% C 0.220 H 337.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B41797
RGBrgb(180, 23, 151)
HSLhsl(311, 77%, 40%)
HSVhsv(311, 87%, 71%)
CMYKcmyk(0%, 87.2%, 16.1%, 29.4%)
CIE-LABlab(42.08, 68.79, -30.57)
CIE-LCHlch(42.08, 75.27, 336.04°)
OKLaboklab(53.02% 0.2041 -0.0832)
OKLCHoklch(53.02% 0.22 337.8)
XYZxyz(24.7153, 12.5530, 30.3935)
Luminance0.1255 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B41797 #17B434
analogous
#8317B4 #B41797 #B41748
triadic
#B41797 #97B417 #1797B4
tetradic
#B41797 #B48317 #17B434 #1748B4
square
#B41797 #B48317 #17B434 #1748B4
split-complementary
#B41797 #48B417 #17B483
monochromatic
#47093C #7E1069 #B41797 #E325C0 #EA5BD0

Accessibility & contrast

On white

5.98
#B41797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B41797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B41797
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B41797#FFFFFF#000000##FFFFFF
##B417971.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21549A
Deuteranopia (green-blind)
#5B6B94
Tritanopia (blue-blind)
#BE245A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b41797;
/* rgb */ color: rgb(180, 23, 151);
/* oklch */ color: oklch(53.0% 0.220 337.8);
Tailwind
colors: {
  custom: {
    50: '#cf6db6',
    500: '#b41797',
    950: '#000000',
  },
}
SCSS
$custom: #b41797;
$custom-light: #cf6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b41797",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 311.083,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.53021,
    "c": 0.22038,
    "h": 337.8
  },
  "luminance": 0.1255
}

Semantic roles & 50–950 ramp

primary
#B41797
secondary
#59CE6F
accent
#F45734
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B41797

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

Preview Lab → · Contrast checker → · Palette generator →

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