#B42297#B42297

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

Color values

HEX#B42297
RGBrgb(180, 34, 151)
HSLhsl(312, 68%, 42%)
HSVhsv(312, 81%, 71%)
CMYKcmyk(0%, 81.1%, 16.1%, 29.4%)
CIE-LABlab(42.89, 66.44, -29.30)
CIE-LCHlch(42.89, 72.62, 336.20°)
OKLaboklab(53.6% 0.197 -0.0797)
OKLCHoklch(53.6% 0.212 338)
XYZxyz(24.9809, 13.0842, 30.4820)
Luminance0.1308 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42297 #22B43F
analogous
#8822B4 #B42297 #B4224E
triadic
#B42297 #97B422 #2297B4
tetradic
#B42297 #B48822 #22B43F #224EB4
square
#B42297 #B48822 #22B43F #224EB4
split-complementary
#B42297 #4EB422 #22B488
monochromatic
#4D0F41 #81186C #B42297 #DA3ABA #E36DCC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B42297#FFFFFF#000000##FFFFFF
##B422971.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#5E6D94
Tritanopia (blue-blind)
#BE2C5C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42297;
/* rgb */ color: rgb(180, 34, 151);
/* oklch */ color: oklch(53.6% 0.212 338.0);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b42297',
    950: '#000000',
  },
}
SCSS
$custom: #b42297;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42297",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 311.918,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53599,
    "c": 0.21249,
    "h": 338
  },
  "luminance": 0.13082
}

Semantic roles & 50–950 ramp

primary
#B42297
secondary
#68CA7C
accent
#EB5F3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42297

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

Preview Lab → · Contrast checker → · Palette generator →

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