#B42F6F#B42F6F

#B42F6F is a mid, vivid pink. Relative luminance 0.129; OKLCH L 52.8% C 0.178 H 355.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#B42F6F
RGBrgb(180, 47, 111)
HSLhsl(331, 59%, 45%)
HSVhsv(331, 74%, 71%)
CMYKcmyk(0%, 73.9%, 38.3%, 29.4%)
CIE-LABlab(42.59, 57.71, -5.23)
CIE-LCHlch(42.59, 57.95, 354.82°)
OKLaboklab(52.85% 0.1771 -0.013)
OKLCHoklch(52.85% 0.178 355.8)
XYZxyz(22.7097, 12.8868, 16.3273)
Luminance0.1288 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F6F #2FB474
analogous
#B42FB2 #B42F6F #B4322F
triadic
#B42F6F #6FB42F #2F6FB4
tetradic
#B42F6F #B2B42F #2FB474 #322FB4
square
#B42F6F #B2B42F #2FB474 #322FB4
split-complementary
#B42F6F #2FB432 #2FB2B4
monochromatic
#531633 #832251 #B42F6F #D14F8E #DE80AD

Accessibility & contrast

On white

5.87
#B42F6F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#B42F6F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F6F
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F6F#FFFFFF#000000##FFFFFF
##B42F6F1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#495571
Deuteranopia (green-blind)
#6E6E6C
Tritanopia (blue-blind)
#C2204B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42f6f;
/* rgb */ color: rgb(180, 47, 111);
/* oklch */ color: oklch(52.8% 0.178 355.8);
Tailwind
colors: {
  custom: {
    50: '#cf7398',
    500: '#b42f6f',
    950: '#000000',
  },
}
SCSS
$custom: #b42f6f;
$custom-light: #cf7398;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f6f",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 331.128,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52848,
    "c": 0.1776,
    "h": 355.8
  },
  "luminance": 0.12884
}

Semantic roles & 50–950 ramp

primary
#B42F6F
secondary
#78C7A1
accent
#E29746
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #B42F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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