#B42E8C#B42E8C

#B42E8C is a mid, vivid pink. Relative luminance 0.136; OKLCH L 53.9% C 0.194 H 342.7°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B42E8C
RGBrgb(180, 46, 140)
HSLhsl(318, 59%, 44%)
HSVhsv(318, 74%, 71%)
CMYKcmyk(0%, 74.4%, 22.2%, 29.4%)
CIE-LABlab(43.59, 61.52, -21.55)
CIE-LCHlch(43.59, 65.19, 340.69°)
OKLaboklab(53.94% 0.1851 -0.0578)
OKLCHoklch(53.94% 0.194 342.7)
XYZxyz(24.5339, 13.5533, 26.1299)
Luminance0.1355 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E8C #2EB456
analogous
#992EB4 #B42E8C #B42E49
triadic
#B42E8C #8CB42E #2E8CB4
tetradic
#B42E8C #B4992E #2EB456 #2E49B4
square
#B42E8C #B4992E #2EB456 #2E49B4
split-complementary
#B42E8C #49B42E #2EB499
monochromatic
#531540 #832266 #B42E8C #D24EAA #DE7EC2

Accessibility & contrast

On white

5.66
#B42E8C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B42E8C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E8C
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E8C#FFFFFF#000000##FFFFFF
##B42E8C1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C598F
Deuteranopia (green-blind)
#656F89
Tritanopia (blue-blind)
#C02F59
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42e8c;
/* rgb */ color: rgb(180, 46, 140);
/* oklch */ color: oklch(53.9% 0.194 342.7);
Tailwind
colors: {
  custom: {
    50: '#ce74ad',
    500: '#b42e8c',
    950: '#000000',
  },
}
SCSS
$custom: #b42e8c;
$custom-light: #ce74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e8c",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 140
  },
  "hsl": {
    "h": 317.91,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53937,
    "c": 0.19392,
    "h": 342.7
  },
  "luminance": 0.13551
}

Semantic roles & 50–950 ramp

primary
#B42E8C
secondary
#77C78F
accent
#E27445
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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