#B42197#B42197

#B42197 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.5% C 0.213 H 338.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B42197
RGBrgb(180, 33, 151)
HSLhsl(312, 69%, 42%)
HSVhsv(312, 82%, 71%)
CMYKcmyk(0%, 81.7%, 16.1%, 29.4%)
CIE-LABlab(42.81, 66.69, -29.43)
CIE-LCHlch(42.81, 72.89, 336.18°)
OKLaboklab(53.54% 0.1977 -0.08)
OKLCHoklch(53.54% 0.213 338)
XYZxyz(24.9528, 13.0279, 30.4727)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42197 #21B43E
analogous
#8821B4 #B42197 #B4214D
triadic
#B42197 #97B421 #2197B4
tetradic
#B42197 #B48821 #21B43E #214DB4
square
#B42197 #B48821 #21B43E #214DB4
split-complementary
#B42197 #4DB421 #21B488
monochromatic
#4D0E40 #80186C #B42197 #DA38BA #E46BCC

Accessibility & contrast

On white

5.83
#B42197 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42197
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42197#FFFFFF#000000##FFFFFF
##B421971.005.833.615.83
#FFFFFF5.831.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#5D6D94
Tritanopia (blue-blind)
#BE2B5C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42197;
/* rgb */ color: rgb(180, 33, 151);
/* oklch */ color: oklch(53.5% 0.213 338.0);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b42197',
    950: '#000000',
  },
}
SCSS
$custom: #b42197;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42197",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 311.837,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53539,
    "c": 0.2133,
    "h": 338
  },
  "luminance": 0.13025
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42197

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

Preview Lab → · Contrast checker → · Palette generator →

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