#B42F7D#B42F7D

#B42F7D is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.4% C 0.184 H 349.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#B42F7D
RGBrgb(180, 47, 125)
HSLhsl(325, 59%, 45%)
HSVhsv(325, 74%, 71%)
CMYKcmyk(0%, 73.9%, 30.6%, 29.4%)
CIE-LABlab(43.09, 59.30, -13.14)
CIE-LCHlch(43.09, 60.73, 347.51°)
OKLaboklab(53.38% 0.181 -0.0344)
OKLCHoklch(53.38% 0.184 349.2)
XYZxyz(23.5418, 13.2197, 20.7100)
Luminance0.1322 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F7D #2FB466
analogous
#A92FB4 #B42F7D #B42F3B
triadic
#B42F7D #7DB42F #2F7DB4
tetradic
#B42F7D #B4A92F #2FB466 #2F3BB4
square
#B42F7D #B4A92F #2FB466 #2F3BB4
split-complementary
#B42F7D #3BB42F #2FB4A9
monochromatic
#53163A #83225B #B42F7D #D14F9B #DE80B7

Accessibility & contrast

On white

5.76
#B42F7D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B42F7D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F7D
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F7D#FFFFFF#000000##FFFFFF
##B42F7D1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44577F
Deuteranopia (green-blind)
#6A6E7A
Tritanopia (blue-blind)
#C12852
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42f7d;
/* rgb */ color: rgb(180, 47, 125);
/* oklch */ color: oklch(53.4% 0.184 349.2);
Tailwind
colors: {
  custom: {
    50: '#cf74a2',
    500: '#b42f7d',
    950: '#000000',
  },
}
SCSS
$custom: #b42f7d;
$custom-light: #cf74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f7d",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 324.812,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53378,
    "c": 0.1842,
    "h": 349.2
  },
  "luminance": 0.13217
}

Semantic roles & 50–950 ramp

primary
#B42F7D
secondary
#78C799
accent
#E28646
background
#FDF7FA
surface
#FAEDF3
border
#D3C8CD
text
#14090F
muted
#837B7F

Preview Lab

Preview with #B42F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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