#B42899#B42899

#B42899 is a mid, highly saturated pink. Relative luminance 0.135; OKLCH L 54.1% C 0.208 H 337.4°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B42899
RGBrgb(180, 40, 153)
HSLhsl(312, 64%, 43%)
HSVhsv(312, 78%, 71%)
CMYKcmyk(0%, 77.8%, 15%, 29.4%)
CIE-LABlab(43.54, 65.13, -29.49)
CIE-LCHlch(43.54, 71.49, 335.64°)
OKLaboklab(54.1% 0.1924 -0.0802)
OKLCHoklch(54.1% 0.208 337.4)
XYZxyz(25.3315, 13.5232, 31.4070)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42899 #28B443
analogous
#8928B4 #B42899 #B42853
triadic
#B42899 #99B428 #2899B4
tetradic
#B42899 #B48928 #28B443 #2853B4
square
#B42899 #B48928 #28B443 #2853B4
split-complementary
#B42899 #53B428 #28B489
monochromatic
#501244 #821D6E #B42899 #D544B9 #E176CC

Accessibility & contrast

On white

5.67
#B42899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B42899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42899
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42899#FFFFFF#000000##FFFFFF
##B428991.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599C
Deuteranopia (green-blind)
#5F6E96
Tritanopia (blue-blind)
#BE315F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42899;
/* rgb */ color: rgb(180, 40, 153);
/* oklch */ color: oklch(54.1% 0.208 337.4);
Tailwind
colors: {
  custom: {
    50: '#cf72b7',
    500: '#b42899',
    950: '#000000',
  },
}
SCSS
$custom: #b42899;
$custom-light: #cf72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42899",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 311.571,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54099,
    "c": 0.20843,
    "h": 337.4
  },
  "luminance": 0.13521
}

Semantic roles & 50–950 ramp

primary
#B42899
secondary
#70C881
accent
#E76141
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42899

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

Preview Lab → · Contrast checker → · Palette generator →

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