#B42198#B42198

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

Color values

HEX#B42198
RGBrgb(180, 33, 152)
HSLhsl(311, 69%, 42%)
HSVhsv(311, 82%, 71%)
CMYKcmyk(0%, 81.7%, 15.6%, 29.4%)
CIE-LABlab(42.85, 66.82, -29.96)
CIE-LCHlch(42.85, 73.23, 335.85°)
OKLaboklab(53.59% 0.1978 -0.0815)
OKLCHoklch(53.59% 0.214 337.6)
XYZxyz(25.0343, 13.0605, 30.9022)
Luminance0.1306 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42198 #21B43D
analogous
#8721B4 #B42198 #B4214E
triadic
#B42198 #98B421 #2198B4
tetradic
#B42198 #B48721 #21B43D #214EB4
square
#B42198 #B48721 #21B43D #214EB4
split-complementary
#B42198 #4EB421 #21B487
monochromatic
#4D0E41 #80186C #B42198 #DA38BB #E46BCD

Accessibility & contrast

On white

5.81
#B42198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42198
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42198#FFFFFF#000000##FFFFFF
##B421981.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42198;
/* rgb */ color: rgb(180, 33, 152);
/* oklch */ color: oklch(53.6% 0.214 337.6);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b42198',
    950: '#000000',
  },
}
SCSS
$custom: #b42198;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42198",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 311.429,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.5359,
    "c": 0.21395,
    "h": 337.6
  },
  "luminance": 0.13058
}

Semantic roles & 50–950 ramp

primary
#B42198
secondary
#67CA7A
accent
#EC5D3C
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42198

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

Preview Lab → · Contrast checker → · Palette generator →

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