#B42A5F#B42A5F

#B42A5F is a mid, vivid pink. Relative luminance 0.122; OKLCH L 51.9% C 0.177 H 2.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#B42A5F
RGBrgb(180, 42, 95)
HSLhsl(337, 62%, 44%)
HSVhsv(337, 77%, 71%)
CMYKcmyk(0%, 76.7%, 47.2%, 29.4%)
CIE-LABlab(41.51, 57.77, 3.18)
CIE-LCHlch(41.51, 57.86, 3.15°)
OKLaboklab(51.89% 0.1771 0.0088)
OKLCHoklch(51.89% 0.177 2.8)
XYZxyz(21.7177, 12.1884, 12.0332)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42A5F #2AB47F
analogous
#B42AA4 #B42A5F #B43A2A
triadic
#B42A5F #5FB42A #2A5FB4
tetradic
#B42A5F #A4B42A #2AB47F #3A2AB4
square
#B42A5F #A4B42A #2AB47F #3A2AB4
split-complementary
#B42A5F #2AB43A #2AA4B4
monochromatic
#51132B #821E45 #B42A5F #D4477D #E079A0

Accessibility & contrast

On white

6.11
#B42A5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#B42A5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42A5F
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42A5F#FFFFFF#000000##FFFFFF
##B42A5F1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B5160
Deuteranopia (green-blind)
#706C5C
Tritanopia (blue-blind)
#C40941
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b42a5f;
/* rgb */ color: rgb(180, 42, 95);
/* oklch */ color: oklch(51.9% 0.177 2.8);
Tailwind
colors: {
  custom: {
    50: '#d0718c',
    500: '#b42a5f',
    950: '#000000',
  },
}
SCSS
$custom: #b42a5f;
$custom-light: #d0718c;
$custom-dark: #000000;
JSON
{
  "hex": "#b42a5f",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 336.957,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51894,
    "c": 0.1773,
    "h": 2.8
  },
  "luminance": 0.12185
}

Semantic roles & 50–950 ramp

primary
#B42A5F
secondary
#72C8A7
accent
#E5A743
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15080C
muted
#837B7D

Preview Lab

Preview with #B42A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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