#B42096#B42096

#B42096 is a mid, highly saturated pink. Relative luminance 0.129; OKLCH L 53.4% C 0.213 H 338.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#B42096
RGBrgb(180, 32, 150)
HSLhsl(312, 70%, 42%)
HSVhsv(312, 82%, 71%)
CMYKcmyk(0%, 82.2%, 16.7%, 29.4%)
CIE-LABlab(42.67, 66.79, -29.03)
CIE-LCHlch(42.67, 72.83, 336.50°)
OKLaboklab(53.43% 0.1984 -0.0789)
OKLCHoklch(53.43% 0.213 338.3)
XYZxyz(24.8446, 12.9408, 30.0376)
Luminance0.1294 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42096 #20B43E
analogous
#8820B4 #B42096 #B4204C
triadic
#B42096 #96B420 #2096B4
tetradic
#B42096 #B48820 #20B43E #204CB4
square
#B42096 #B48820 #20B43E #204CB4
split-complementary
#B42096 #4CB420 #20B488
monochromatic
#4C0E3F #80176B #B42096 #DB36BA #E46ACC

Accessibility & contrast

On white

5.85
#B42096 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42096
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42096#FFFFFF#000000##FFFFFF
##B420961.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295699
Deuteranopia (green-blind)
#5D6D93
Tritanopia (blue-blind)
#BE2A5B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42096;
/* rgb */ color: rgb(180, 32, 150);
/* oklch */ color: oklch(53.4% 0.213 338.3);
Tailwind
colors: {
  custom: {
    50: '#cf6fb5',
    500: '#b42096',
    950: '#000000',
  },
}
SCSS
$custom: #b42096;
$custom-light: #cf6fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#b42096",
  "rgb": {
    "r": 180,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 312.162,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53429,
    "c": 0.21347,
    "h": 338.3
  },
  "luminance": 0.12938
}

Semantic roles & 50–950 ramp

primary
#B42096
secondary
#66CA7A
accent
#ED5F3B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42096

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

Preview Lab → · Contrast checker → · Palette generator →

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