#B42871#B42871

#B42871 is a mid, vivid pink. Relative luminance 0.124; OKLCH L 52.3% C 0.186 H 354.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B42871
RGBrgb(180, 40, 113)
HSLhsl(329, 64%, 43%)
HSVhsv(329, 78%, 71%)
CMYKcmyk(0%, 77.8%, 37.2%, 29.4%)
CIE-LABlab(41.87, 60.16, -7.55)
CIE-LCHlch(41.87, 60.63, 352.84°)
OKLaboklab(52.34% 0.1848 -0.0192)
OKLCHoklch(52.34% 0.186 354.1)
XYZxyz(22.5633, 12.4159, 16.8279)
Luminance0.1241 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42871 #28B46B
analogous
#B128B4 #B42871 #B4282B
triadic
#B42871 #71B428 #2871B4
tetradic
#B42871 #B4B128 #28B46B #282BB4
square
#B42871 #B4B128 #28B46B #282BB4
split-complementary
#B42871 #2BB428 #28B4B1
monochromatic
#501232 #821D52 #B42871 #D54490 #E176AD

Accessibility & contrast

On white

6.03
#B42871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#B42871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42871
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42871#FFFFFF#000000##FFFFFF
##B428711.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445273
Deuteranopia (green-blind)
#6B6C6E
Tritanopia (blue-blind)
#C21749
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b42871;
/* rgb */ color: rgb(180, 40, 113);
/* oklch */ color: oklch(52.3% 0.186 354.1);
Tailwind
colors: {
  custom: {
    50: '#cf7199',
    500: '#b42871',
    950: '#000000',
  },
}
SCSS
$custom: #b42871;
$custom-light: #cf7199;
$custom-dark: #000000;
JSON
{
  "hex": "#b42871",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 328.714,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.1858,
    "h": 354.1
  },
  "luminance": 0.12413
}

Semantic roles & 50–950 ramp

primary
#B42871
secondary
#70C89A
accent
#E79041
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #B42871

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

Preview Lab → · Contrast checker → · Palette generator →

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