#B42A5E#B42A5E

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

Color values

HEX#B42A5E
RGBrgb(180, 42, 94)
HSLhsl(337, 62%, 44%)
HSVhsv(337, 77%, 71%)
CMYKcmyk(0%, 76.7%, 47.8%, 29.4%)
CIE-LABlab(41.49, 57.68, 3.77)
CIE-LCHlch(41.49, 57.81, 3.74°)
OKLaboklab(51.86% 0.1767 0.0103)
OKLCHoklch(51.86% 0.177 3.3)
XYZxyz(21.6726, 12.1703, 11.7954)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42A5E #2AB480
analogous
#B42AA3 #B42A5E #B43B2A
triadic
#B42A5E #5EB42A #2A5EB4
tetradic
#B42A5E #A3B42A #2AB480 #3B2AB4
square
#B42A5E #A3B42A #2AB480 #3B2AB4
split-complementary
#B42A5E #2AB43B #2AA3B4
monochromatic
#51132A #821E44 #B42A5E #D4477C #E079A0

Accessibility & contrast

On white

6.12
#B42A5E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#B42A5E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42A5E
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42A5E#FFFFFF#000000##FFFFFF
##B42A5E1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B515F
Deuteranopia (green-blind)
#706C5B
Tritanopia (blue-blind)
#C40841
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b42a5e;
/* rgb */ color: rgb(180, 42, 94);
/* oklch */ color: oklch(51.9% 0.177 3.3);
Tailwind
colors: {
  custom: {
    50: '#d0718b',
    500: '#b42a5e',
    950: '#000000',
  },
}
SCSS
$custom: #b42a5e;
$custom-light: #d0718b;
$custom-dark: #000000;
JSON
{
  "hex": "#b42a5e",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 337.391,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.51864,
    "c": 0.17703,
    "h": 3.3
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B42A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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