#B42097#B42097

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

Color values

HEX#B42097
RGBrgb(180, 32, 151)
HSLhsl(312, 70%, 42%)
HSVhsv(312, 82%, 71%)
CMYKcmyk(0%, 82.2%, 16.1%, 29.4%)
CIE-LABlab(42.72, 66.92, -29.56)
CIE-LCHlch(42.72, 73.16, 336.17°)
OKLaboklab(53.48% 0.1984 -0.0804)
OKLCHoklch(53.48% 0.214 337.9)
XYZxyz(24.9254, 12.9732, 30.4635)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42097 #20B43D
analogous
#8720B4 #B42097 #B4204D
triadic
#B42097 #97B420 #2097B4
tetradic
#B42097 #B48720 #20B43D #204DB4
square
#B42097 #B48720 #20B43D #204DB4
split-complementary
#B42097 #4DB420 #20B487
monochromatic
#4C0E40 #80176B #B42097 #DB36BB #E46ACC

Accessibility & contrast

On white

5.84
#B42097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#B42097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42097
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42097#FFFFFF#000000##FFFFFF
##B420971.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b42097;
/* rgb */ color: rgb(180, 32, 151);
/* oklch */ color: oklch(53.5% 0.214 337.9);
Tailwind
colors: {
  custom: {
    50: '#cf6fb6',
    500: '#b42097',
    950: '#000000',
  },
}
SCSS
$custom: #b42097;
$custom-light: #cf6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42097",
  "rgb": {
    "r": 180,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 311.757,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5348,
    "c": 0.21411,
    "h": 337.9
  },
  "luminance": 0.12971
}

Semantic roles & 50–950 ramp

primary
#B42097
secondary
#66CA79
accent
#ED5E3B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42097

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

Preview Lab → · Contrast checker → · Palette generator →

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