#B42F8D#B42F8D

#B42F8D is a mid, vivid pink. Relative luminance 0.137; OKLCH L 54.1% C 0.193 H 342.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#B42F8D
RGBrgb(180, 47, 141)
HSLhsl(318, 59%, 45%)
HSVhsv(318, 74%, 71%)
CMYKcmyk(0%, 73.9%, 21.7%, 29.4%)
CIE-LABlab(43.74, 61.33, -21.91)
CIE-LCHlch(43.74, 65.13, 340.34°)
OKLaboklab(54.07% 0.1843 -0.0588)
OKLCHoklch(54.07% 0.193 342.3)
XYZxyz(24.6475, 13.6619, 26.5331)
Luminance0.1366 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F8D #2FB456
analogous
#992FB4 #B42F8D #B42F4B
triadic
#B42F8D #8DB42F #2F8DB4
tetradic
#B42F8D #B4992F #2FB456 #2F4BB4
square
#B42F8D #B4992F #2FB456 #2F4BB4
split-complementary
#B42F8D #4BB42F #2FB499
monochromatic
#531641 #832267 #B42F8D #D14FAB #DE80C2

Accessibility & contrast

On white

5.63
#B42F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#B42F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F8D
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F8D#FFFFFF#000000##FFFFFF
##B42F8D1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5990
Deuteranopia (green-blind)
#656F8A
Tritanopia (blue-blind)
#BF305A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42f8d;
/* rgb */ color: rgb(180, 47, 141);
/* oklch */ color: oklch(54.1% 0.193 342.3);
Tailwind
colors: {
  custom: {
    50: '#ce74ae',
    500: '#b42f8d',
    950: '#000000',
  },
}
SCSS
$custom: #b42f8d;
$custom-light: #ce74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f8d",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 317.594,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54066,
    "c": 0.19343,
    "h": 342.3
  },
  "luminance": 0.13659
}

Semantic roles & 50–950 ramp

primary
#B42F8D
secondary
#78C78F
accent
#E27446
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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