#B42A8F#B42A8F

#B42A8F is a mid, highly saturated pink. Relative luminance 0.133; OKLCH L 53.8% C 0.200 H 341.3°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B42A8F
RGBrgb(180, 42, 143)
HSLhsl(316, 62%, 44%)
HSVhsv(316, 77%, 71%)
CMYKcmyk(0%, 76.7%, 20.6%, 29.4%)
CIE-LABlab(43.28, 63.17, -23.85)
CIE-LCHlch(43.28, 67.52, 339.32°)
OKLaboklab(53.76% 0.1894 -0.0642)
OKLCHoklch(53.76% 0.2 341.3)
XYZxyz(24.6091, 13.3449, 27.2611)
Luminance0.1334 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42A8F #2AB44F
analogous
#942AB4 #B42A8F #B42A4A
triadic
#B42A8F #8FB42A #2A8FB4
tetradic
#B42A8F #B4942A #2AB44F #2A4AB4
square
#B42A8F #B4942A #2AB44F #2A4AB4
split-complementary
#B42A8F #4AB42A #2AB494
monochromatic
#511340 #821E68 #B42A8F #D447AE #E079C4

Accessibility & contrast

On white

5.72
#B42A8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B42A8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42A8F
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42A8F#FFFFFF#000000##FFFFFF
##B42A8F1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375892
Deuteranopia (green-blind)
#636E8C
Tritanopia (blue-blind)
#BF2D5A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42a8f;
/* rgb */ color: rgb(180, 42, 143);
/* oklch */ color: oklch(53.8% 0.200 341.3);
Tailwind
colors: {
  custom: {
    50: '#cf72b0',
    500: '#b42a8f',
    950: '#000000',
  },
}
SCSS
$custom: #b42a8f;
$custom-light: #cf72b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42a8f",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 316.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53757,
    "c": 0.2,
    "h": 341.3
  },
  "luminance": 0.13342
}

Semantic roles & 50–950 ramp

primary
#B42A8F
secondary
#72C889
accent
#E56E43
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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