#B42E5F#B42E5F

#B42E5F is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.2% C 0.173 H 3.5°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#B42E5F
RGBrgb(180, 46, 95)
HSLhsl(338, 59%, 44%)
HSVhsv(338, 74%, 71%)
CMYKcmyk(0%, 74.4%, 47.2%, 29.4%)
CIE-LABlab(41.98, 56.46, 3.85)
CIE-LCHlch(41.98, 56.60, 3.90°)
OKLaboklab(52.24% 0.1729 0.0105)
OKLCHoklch(52.24% 0.173 3.5)
XYZxyz(21.8667, 12.4864, 12.0829)
Luminance0.1248 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E5F #2EB483
analogous
#B42EA2 #B42E5F #B4402E
triadic
#B42E5F #5FB42E #2E5FB4
tetradic
#B42E5F #A2B42E #2EB483 #402EB4
square
#B42E5F #A2B42E #2EB483 #402EB4
split-complementary
#B42E5F #2EB440 #2EA2B4
monochromatic
#53152C #832245 #B42E5F #D24E7E #DE7EA1

Accessibility & contrast

On white

6.01
#B42E5F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#B42E5F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E5F
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E5F#FFFFFF#000000##FFFFFF
##B42E5F1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5260
Deuteranopia (green-blind)
#716D5C
Tritanopia (blue-blind)
#C41343
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b42e5f;
/* rgb */ color: rgb(180, 46, 95);
/* oklch */ color: oklch(52.2% 0.173 3.5);
Tailwind
colors: {
  custom: {
    50: '#d0728c',
    500: '#b42e5f',
    950: '#000000',
  },
}
SCSS
$custom: #b42e5f;
$custom-light: #d0728c;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e5f",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 338.06,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.52237,
    "c": 0.17321,
    "h": 3.5
  },
  "luminance": 0.12484
}

Semantic roles & 50–950 ramp

primary
#B42E5F
secondary
#77C7AA
accent
#E2A945
background
#FDF7F8
surface
#FBEDF0
border
#D4C8CB
text
#15090C
muted
#837B7D

Preview Lab

Preview with #B42E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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