#B42E8F#B42E8F

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

Color values

HEX#B42E8F
RGBrgb(180, 46, 143)
HSLhsl(317, 59%, 44%)
HSVhsv(317, 74%, 71%)
CMYKcmyk(0%, 74.4%, 20.6%, 29.4%)
CIE-LABlab(43.72, 61.92, -23.17)
CIE-LCHlch(43.72, 66.12, 339.48°)
OKLaboklab(54.07% 0.1856 -0.0623)
OKLCHoklch(54.07% 0.196 341.4)
XYZxyz(24.7581, 13.6430, 27.3108)
Luminance0.1364 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E8F #2EB453
analogous
#962EB4 #B42E8F #B42E4C
triadic
#B42E8F #8FB42E #2E8FB4
tetradic
#B42E8F #B4962E #2EB453 #2E4CB4
square
#B42E8F #B4962E #2EB453 #2E4CB4
split-complementary
#B42E8F #4CB42E #2EB496
monochromatic
#531542 #832268 #B42E8F #D24EAD #DE7EC4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B42E8F#FFFFFF#000000##FFFFFF
##B42E8F1.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)
#3A5992
Deuteranopia (green-blind)
#646F8C
Tritanopia (blue-blind)
#BF315B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42e8f;
/* rgb */ color: rgb(180, 46, 143);
/* oklch */ color: oklch(54.1% 0.196 341.4);
Tailwind
colors: {
  custom: {
    50: '#ce74b0',
    500: '#b42e8f',
    950: '#000000',
  },
}
SCSS
$custom: #b42e8f;
$custom-light: #ce74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e8f",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 316.567,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54074,
    "c": 0.1958,
    "h": 341.4
  },
  "luminance": 0.1364
}

Semantic roles & 50–950 ramp

primary
#B42E8F
secondary
#77C78D
accent
#E27145
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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