#B42F96#B42F96

#B42F96 is a mid, vivid pink. Relative luminance 0.139; OKLCH L 54.5% C 0.199 H 338.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B42F96
RGBrgb(180, 47, 150)
HSLhsl(314, 59%, 45%)
HSVhsv(314, 74%, 71%)
CMYKcmyk(0%, 73.9%, 16.7%, 29.4%)
CIE-LABlab(44.15, 62.57, -26.73)
CIE-LCHlch(44.15, 68.04, 336.86°)
OKLaboklab(54.49% 0.1856 -0.0724)
OKLCHoklch(54.49% 0.199 338.7)
XYZxyz(25.3445, 13.9408, 30.2043)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F96 #2FB44D
analogous
#902FB4 #B42F96 #B42F54
triadic
#B42F96 #96B42F #2F96B4
tetradic
#B42F96 #B4902F #2FB44D #2F54B4
square
#B42F96 #B4902F #2FB44D #2F54B4
split-complementary
#B42F96 #54B42F #2FB490
monochromatic
#531645 #83226E #B42F96 #D14FB4 #DE80C9

Accessibility & contrast

On white

5.54
#B42F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B42F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F96
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F96#FFFFFF#000000##FFFFFF
##B42F961.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365B99
Deuteranopia (green-blind)
#627093
Tritanopia (blue-blind)
#BE355F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42f96;
/* rgb */ color: rgb(180, 47, 150);
/* oklch */ color: oklch(54.5% 0.199 338.7);
Tailwind
colors: {
  custom: {
    50: '#ce75b5',
    500: '#b42f96',
    950: '#000000',
  },
}
SCSS
$custom: #b42f96;
$custom-light: #ce75b5;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f96",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 313.534,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.5449,
    "c": 0.19925,
    "h": 338.7
  },
  "luminance": 0.13938
}

Semantic roles & 50–950 ramp

primary
#B42F96
secondary
#78C78A
accent
#E26946
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42F96

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

Preview Lab → · Contrast checker → · Palette generator →

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