#B42F7A#B42F7A

#B42F7A is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.183 H 350.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B42F7A
RGBrgb(180, 47, 122)
HSLhsl(326, 59%, 45%)
HSVhsv(326, 74%, 71%)
CMYKcmyk(0%, 73.9%, 32.2%, 29.4%)
CIE-LABlab(42.98, 58.94, -11.46)
CIE-LCHlch(42.98, 60.04, 349.00°)
OKLaboklab(53.26% 0.1802 -0.0298)
OKLCHoklch(53.26% 0.183 350.6)
XYZxyz(23.3530, 13.1442, 19.7158)
Luminance0.1314 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F7A #2FB469
analogous
#AB2FB4 #B42F7A #B42F38
triadic
#B42F7A #7AB42F #2F7AB4
tetradic
#B42F7A #B4AB2F #2FB469 #2F38B4
square
#B42F7A #B4AB2F #2FB469 #2F38B4
split-complementary
#B42F7A #38B42F #2FB4AB
monochromatic
#531638 #832259 #B42F7A #D14F98 #DE80B5

Accessibility & contrast

On white

5.79
#B42F7A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B42F7A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F7A
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F7A#FFFFFF#000000##FFFFFF
##B42F7A1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45567C
Deuteranopia (green-blind)
#6B6E77
Tritanopia (blue-blind)
#C12650
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42f7a;
/* rgb */ color: rgb(180, 47, 122);
/* oklch */ color: oklch(53.3% 0.183 350.6);
Tailwind
colors: {
  custom: {
    50: '#cf74a0',
    500: '#b42f7a',
    950: '#000000',
  },
}
SCSS
$custom: #b42f7a;
$custom-light: #cf74a0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f7a",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 326.165,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53259,
    "c": 0.18266,
    "h": 350.6
  },
  "luminance": 0.13141
}

Semantic roles & 50–950 ramp

primary
#B42F7A
secondary
#78C79A
accent
#E28A46
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090E
muted
#837B7E

Preview Lab

Preview with #B42F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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