#B42099#B42099

#B42099 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.6% C 0.215 H 337.2°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B42099
RGBrgb(180, 32, 153)
HSLhsl(311, 70%, 42%)
HSVhsv(311, 82%, 71%)
CMYKcmyk(0%, 82.2%, 15%, 29.4%)
CIE-LABlab(42.82, 67.20, -30.62)
CIE-LCHlch(42.82, 73.84, 335.51°)
OKLaboklab(53.58% 0.1986 -0.0834)
OKLCHoklch(53.58% 0.215 337.2)
XYZxyz(25.0892, 13.0387, 31.3262)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42099 #20B43B
analogous
#8520B4 #B42099 #B4204F
triadic
#B42099 #99B420 #2099B4
tetradic
#B42099 #B48520 #20B43B #204FB4
square
#B42099 #B48520 #20B43B #204FB4
split-complementary
#B42099 #4FB420 #20B485
monochromatic
#4C0E41 #80176D #B42099 #DB36BD #E46ACE

Accessibility & contrast

On white

5.82
#B42099 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B42099 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42099
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42099#FFFFFF#000000##FFFFFF
##B420991.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579C
Deuteranopia (green-blind)
#5C6D96
Tritanopia (blue-blind)
#BE2C5D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42099;
/* rgb */ color: rgb(180, 32, 153);
/* oklch */ color: oklch(53.6% 0.215 337.2);
Tailwind
colors: {
  custom: {
    50: '#cf6fb7',
    500: '#b42099',
    950: '#000000',
  },
}
SCSS
$custom: #b42099;
$custom-light: #cf6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42099",
  "rgb": {
    "r": 180,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 310.946,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53582,
    "c": 0.2154,
    "h": 337.2
  },
  "luminance": 0.13036
}

Semantic roles & 50–950 ramp

primary
#B42099
secondary
#66CA78
accent
#ED5C3B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42099

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

Preview Lab → · Contrast checker → · Palette generator →

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