#B42298#B42298

#B42298 is a mid, highly saturated pink. Relative luminance 0.131; OKLCH L 53.6% C 0.213 H 337.6°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B42298
RGBrgb(180, 34, 152)
HSLhsl(312, 68%, 42%)
HSVhsv(312, 81%, 71%)
CMYKcmyk(0%, 81.1%, 15.6%, 29.4%)
CIE-LABlab(42.94, 66.58, -29.83)
CIE-LCHlch(42.94, 72.96, 335.87°)
OKLaboklab(53.65% 0.1971 -0.0812)
OKLCHoklch(53.65% 0.213 337.6)
XYZxyz(25.0625, 13.1168, 30.9116)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42298 #22B43E
analogous
#8722B4 #B42298 #B4224F
triadic
#B42298 #98B422 #2298B4
tetradic
#B42298 #B48722 #22B43E #224FB4
square
#B42298 #B48722 #22B43E #224FB4
split-complementary
#B42298 #4FB422 #22B487
monochromatic
#4D0F41 #81186D #B42298 #DA3ABB #E36DCD

Accessibility & contrast

On white

5.80
#B42298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B42298 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42298
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42298#FFFFFF#000000##FFFFFF
##B422981.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#5D6D95
Tritanopia (blue-blind)
#BE2C5D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42298;
/* rgb */ color: rgb(180, 34, 152);
/* oklch */ color: oklch(53.6% 0.213 337.6);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b42298',
    950: '#000000',
  },
}
SCSS
$custom: #b42298;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42298",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 311.507,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.21313,
    "h": 337.6
  },
  "luminance": 0.13114
}

Semantic roles & 50–950 ramp

primary
#B42298
secondary
#68CA7B
accent
#EB5E3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42298

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

Preview Lab → · Contrast checker → · Palette generator →

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