#B42F71#B42F71

#B42F71 is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.9% C 0.178 H 354.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#B42F71
RGBrgb(180, 47, 113)
HSLhsl(330, 59%, 45%)
HSVhsv(330, 74%, 71%)
CMYKcmyk(0%, 73.9%, 37.2%, 29.4%)
CIE-LABlab(42.66, 57.92, -6.37)
CIE-LCHlch(42.66, 58.27, 353.72°)
OKLaboklab(52.92% 0.1777 -0.0161)
OKLCHoklch(52.92% 0.178 354.8)
XYZxyz(22.8210, 12.9314, 16.9138)
Luminance0.1293 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F71 #2FB472
analogous
#B42FB3 #B42F71 #B4302F
triadic
#B42F71 #71B42F #2F71B4
tetradic
#B42F71 #B3B42F #2FB472 #302FB4
square
#B42F71 #B3B42F #2FB472 #302FB4
split-complementary
#B42F71 #2FB430 #2FB3B4
monochromatic
#531634 #832253 #B42F71 #D14F90 #DE80AE

Accessibility & contrast

On white

5.86
#B42F71 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42F71
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F71#FFFFFF#000000##FFFFFF
##B42F711.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#485573
Deuteranopia (green-blind)
#6E6E6E
Tritanopia (blue-blind)
#C2214C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42f71;
/* rgb */ color: rgb(180, 47, 113);
/* oklch */ color: oklch(52.9% 0.178 354.8);
Tailwind
colors: {
  custom: {
    50: '#cf7399',
    500: '#b42f71',
    950: '#000000',
  },
}
SCSS
$custom: #b42f71;
$custom-light: #cf7399;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f71",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 330.226,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5292,
    "c": 0.17845,
    "h": 354.8
  },
  "luminance": 0.12929
}

Semantic roles & 50–950 ramp

primary
#B42F71
secondary
#78C7A0
accent
#E29446
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15090E
muted
#837B7E

Preview Lab

Preview with #B42F71

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

Preview Lab → · Contrast checker → · Palette generator →

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