#B42796#B42796

#B42796 is a mid, highly saturated pink. Relative luminance 0.134; OKLCH L 53.9% C 0.207 H 338.5°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B42796
RGBrgb(180, 39, 150)
HSLhsl(313, 64%, 43%)
HSVhsv(313, 78%, 71%)
CMYKcmyk(0%, 78.3%, 16.7%, 29.4%)
CIE-LABlab(43.30, 64.99, -28.06)
CIE-LCHlch(43.30, 70.79, 336.65°)
OKLaboklab(53.88% 0.1929 -0.0761)
OKLCHoklch(53.88% 0.207 338.5)
XYZxyz(25.0536, 13.3588, 30.1073)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42796 #27B445
analogous
#8B27B4 #B42796 #B4274F
triadic
#B42796 #96B427 #2796B4
tetradic
#B42796 #B48B27 #27B445 #274FB4
square
#B42796 #B48B27 #27B445 #274FB4
split-complementary
#B42796 #4FB427 #27B48B
monochromatic
#4F1142 #821C6C #B42796 #D642B7 #E174CA

Accessibility & contrast

On white

5.72
#B42796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B42796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42796
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42796#FFFFFF#000000##FFFFFF
##B427961.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5899
Deuteranopia (green-blind)
#5F6E93
Tritanopia (blue-blind)
#BE2F5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42796;
/* rgb */ color: rgb(180, 39, 150);
/* oklch */ color: oklch(53.9% 0.207 338.5);
Tailwind
colors: {
  custom: {
    50: '#cf72b5',
    500: '#b42796',
    950: '#000000',
  },
}
SCSS
$custom: #b42796;
$custom-light: #cf72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#b42796",
  "rgb": {
    "r": 180,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 312.766,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53878,
    "c": 0.2074,
    "h": 338.5
  },
  "luminance": 0.13356
}

Semantic roles & 50–950 ramp

primary
#B42796
secondary
#6FC882
accent
#E76440
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42796

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

Preview Lab → · Contrast checker → · Palette generator →

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