#B42B8E#B42B8E

#B42B8E is a mid, vivid pink. Relative luminance 0.134; OKLCH L 53.8% C 0.198 H 341.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#B42B8E
RGBrgb(180, 43, 142)
HSLhsl(317, 61%, 44%)
HSVhsv(317, 76%, 71%)
CMYKcmyk(0%, 76.1%, 21.1%, 29.4%)
CIE-LABlab(43.34, 62.73, -23.15)
CIE-LCHlch(43.34, 66.87, 339.75°)
OKLaboklab(53.79% 0.1883 -0.0622)
OKLCHoklch(53.79% 0.198 341.7)
XYZxyz(24.5696, 13.3866, 26.8759)
Luminance0.1338 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42B8E #2BB451
analogous
#952BB4 #B42B8E #B42B49
triadic
#B42B8E #8EB42B #2B8EB4
tetradic
#B42B8E #B4952B #2BB451 #2B49B4
square
#B42B8E #B4952B #2BB451 #2B49B4
split-complementary
#B42B8E #49B42B #2BB495
monochromatic
#511340 #831F67 #B42B8E #D349AD #DF7AC3

Accessibility & contrast

On white

5.71
#B42B8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B42B8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42B8E
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42B8E#FFFFFF#000000##FFFFFF
##B42B8E1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#646E8B
Tritanopia (blue-blind)
#BF2D59
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42b8e;
/* rgb */ color: rgb(180, 43, 142);
/* oklch */ color: oklch(53.8% 0.198 341.7);
Tailwind
colors: {
  custom: {
    50: '#cf73af',
    500: '#b42b8e',
    950: '#000000',
  },
}
SCSS
$custom: #b42b8e;
$custom-light: #cf73af;
$custom-dark: #000000;
JSON
{
  "hex": "#b42b8e",
  "rgb": {
    "r": 180,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 316.642,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53787,
    "c": 0.19835,
    "h": 341.7
  },
  "luminance": 0.13384
}

Semantic roles & 50–950 ramp

primary
#B42B8E
secondary
#73C78B
accent
#E57043
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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