#B42F8F#B42F8F

#B42F8F is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.2% C 0.195 H 341.5°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#B42F8F
RGBrgb(180, 47, 143)
HSLhsl(317, 59%, 45%)
HSVhsv(317, 74%, 71%)
CMYKcmyk(0%, 73.9%, 20.6%, 29.4%)
CIE-LABlab(43.83, 61.60, -22.99)
CIE-LCHlch(43.83, 65.75, 339.53°)
OKLaboklab(54.16% 0.1846 -0.0618)
OKLCHoklch(54.16% 0.195 341.5)
XYZxyz(24.7976, 13.7220, 27.3239)
Luminance0.1372 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F8F #2FB454
analogous
#972FB4 #B42F8F #B42F4C
triadic
#B42F8F #8FB42F #2F8FB4
tetradic
#B42F8F #B4972F #2FB454 #2F4CB4
square
#B42F8F #B4972F #2FB454 #2F4CB4
split-complementary
#B42F8F #4CB42F #2FB497
monochromatic
#531642 #832268 #B42F8F #D14FAD #DE80C4

Accessibility & contrast

On white

5.61
#B42F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B42F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F8F
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F8F#FFFFFF#000000##FFFFFF
##B42F8F1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5A92
Deuteranopia (green-blind)
#656F8C
Tritanopia (blue-blind)
#BF315B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42f8f;
/* rgb */ color: rgb(180, 47, 143);
/* oklch */ color: oklch(54.2% 0.195 341.5);
Tailwind
colors: {
  custom: {
    50: '#ce74b0',
    500: '#b42f8f',
    950: '#000000',
  },
}
SCSS
$custom: #b42f8f;
$custom-light: #ce74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f8f",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 316.692,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54158,
    "c": 0.19469,
    "h": 341.5
  },
  "luminance": 0.13719
}

Semantic roles & 50–950 ramp

primary
#B42F8F
secondary
#78C78E
accent
#E27146
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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