#B42E7F#B42E7F

#B42E7F is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.4% C 0.186 H 348.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#B42E7F
RGBrgb(180, 46, 127)
HSLhsl(324, 59%, 44%)
HSVhsv(324, 74%, 71%)
CMYKcmyk(0%, 74.4%, 29.4%, 29.4%)
CIE-LABlab(43.05, 59.87, -14.43)
CIE-LCHlch(43.05, 61.58, 346.45°)
OKLaboklab(53.37% 0.1825 -0.0379)
OKLCHoklch(53.37% 0.186 348.3)
XYZxyz(23.6313, 13.1923, 21.3764)
Luminance0.1319 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E7F #2EB463
analogous
#A62EB4 #B42E7F #B42E3C
triadic
#B42E7F #7FB42E #2E7FB4
tetradic
#B42E7F #B4A62E #2EB463 #2E3CB4
square
#B42E7F #B4A62E #2EB463 #2E3CB4
split-complementary
#B42E7F #3CB42E #2EB4A6
monochromatic
#53153A #83225D #B42E7F #D24E9D #DE7EB8

Accessibility & contrast

On white

5.77
#B42E7F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B42E7F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E7F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E7F#FFFFFF#000000##FFFFFF
##B42E7F1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425781
Deuteranopia (green-blind)
#6A6E7C
Tritanopia (blue-blind)
#C12853
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42e7f;
/* rgb */ color: rgb(180, 46, 127);
/* oklch */ color: oklch(53.4% 0.186 348.3);
Tailwind
colors: {
  custom: {
    50: '#cf73a4',
    500: '#b42e7f',
    950: '#000000',
  },
}
SCSS
$custom: #b42e7f;
$custom-light: #cf73a4;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e7f",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 323.731,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53374,
    "c": 0.18638,
    "h": 348.3
  },
  "luminance": 0.1319
}

Semantic roles & 50–950 ramp

primary
#B42E7F
secondary
#77C797
accent
#E28345
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#14090F
muted
#837B7F

Preview Lab

Preview with #B42E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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