#B42F99#B42F99

#B42F99 is a mid, highly saturated pink. Relative luminance 0.140; OKLCH L 54.6% C 0.201 H 337.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B42F99
RGBrgb(180, 47, 153)
HSLhsl(312, 59%, 45%)
HSVhsv(312, 74%, 71%)
CMYKcmyk(0%, 73.9%, 15%, 29.4%)
CIE-LABlab(44.29, 62.99, -28.32)
CIE-LCHlch(44.29, 69.07, 335.79°)
OKLaboklab(54.64% 0.186 -0.0769)
OKLCHoklch(54.64% 0.201 337.5)
XYZxyz(25.5892, 14.0386, 31.4929)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F99 #2FB44A
analogous
#8C2FB4 #B42F99 #B42F57
triadic
#B42F99 #99B42F #2F99B4
tetradic
#B42F99 #B48C2F #2FB44A #2F57B4
square
#B42F99 #B48C2F #2FB44A #2F57B4
split-complementary
#B42F99 #57B42F #2FB48C
monochromatic
#531647 #832270 #B42F99 #D14FB7 #DE80CB

Accessibility & contrast

On white

5.52
#B42F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B42F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F99
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F99#FFFFFF#000000##FFFFFF
##B42F991.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345C9C
Deuteranopia (green-blind)
#617096
Tritanopia (blue-blind)
#BE3761
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42f99;
/* rgb */ color: rgb(180, 47, 153);
/* oklch */ color: oklch(54.6% 0.201 337.5);
Tailwind
colors: {
  custom: {
    50: '#ce75b7',
    500: '#b42f99',
    950: '#000000',
  },
}
SCSS
$custom: #b42f99;
$custom-light: #ce75b7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f99",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 312.18,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54637,
    "c": 0.20127,
    "h": 337.5
  },
  "luminance": 0.14036
}

Semantic roles & 50–950 ramp

primary
#B42F99
secondary
#78C788
accent
#E26646
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42F99

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

Preview Lab → · Contrast checker → · Palette generator →

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