#B42F7C#B42F7C

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

Color values

HEX#B42F7C
RGBrgb(180, 47, 124)
HSLhsl(325, 59%, 45%)
HSVhsv(325, 74%, 71%)
CMYKcmyk(0%, 73.9%, 31.1%, 29.4%)
CIE-LABlab(43.05, 59.18, -12.58)
CIE-LCHlch(43.05, 60.50, 348.00°)
OKLaboklab(53.34% 0.1807 -0.0329)
OKLCHoklch(53.34% 0.184 349.7)
XYZxyz(23.4782, 13.1943, 20.3752)
Luminance0.1319 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F7C #2FB467
analogous
#AA2FB4 #B42F7C #B42F3A
triadic
#B42F7C #7CB42F #2F7CB4
tetradic
#B42F7C #B4AA2F #2FB467 #2F3AB4
square
#B42F7C #B4AA2F #2FB467 #2F3AB4
split-complementary
#B42F7C #3AB42F #2FB4AA
monochromatic
#531639 #83225B #B42F7C #D14F9A #DE80B6

Accessibility & contrast

On white

5.77
#B42F7C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42F7C
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F7C#FFFFFF#000000##FFFFFF
##B42F7C1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44577E
Deuteranopia (green-blind)
#6B6E79
Tritanopia (blue-blind)
#C12751
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42f7c;
/* rgb */ color: rgb(180, 47, 124);
/* oklch */ color: oklch(53.3% 0.184 349.7);
Tailwind
colors: {
  custom: {
    50: '#cf74a2',
    500: '#b42f7c',
    950: '#000000',
  },
}
SCSS
$custom: #b42f7c;
$custom-light: #cf74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f7c",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 325.263,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53338,
    "c": 0.18368,
    "h": 349.7
  },
  "luminance": 0.13192
}

Semantic roles & 50–950 ramp

primary
#B42F7C
secondary
#78C799
accent
#E28846
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #B42F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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