#B42E9D#B42E9D

#B42E9D is a mid, highly saturated pink. Relative luminance 0.141; OKLCH L 54.8% C 0.205 H 336.0°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B42E9D
RGBrgb(180, 46, 157)
HSLhsl(310, 59%, 44%)
HSVhsv(310, 74%, 71%)
CMYKcmyk(0%, 74.4%, 12.8%, 29.4%)
CIE-LABlab(44.37, 63.89, -30.60)
CIE-LCHlch(44.37, 70.84, 334.41°)
OKLaboklab(54.76% 0.1873 -0.0834)
OKLCHoklch(54.76% 0.205 336)
XYZxyz(25.8856, 14.0940, 33.2489)
Luminance0.1409 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E9D #2EB445
analogous
#882EB4 #B42E9D #B42E5A
triadic
#B42E9D #9DB42E #2E9DB4
tetradic
#B42E9D #B4882E #2EB445 #2E5AB4
square
#B42E9D #B4882E #2EB445 #2E5AB4
split-complementary
#B42E9D #5AB42E #2EB488
monochromatic
#531548 #832272 #B42E9D #D24EBB #DE7ECE

Accessibility & contrast

On white

5.50
#B42E9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B42E9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E9D
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E9D#FFFFFF#000000##FFFFFF
##B42E9D1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305CA0
Deuteranopia (green-blind)
#5F709A
Tritanopia (blue-blind)
#BD3863
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42e9d;
/* rgb */ color: rgb(180, 46, 157);
/* oklch */ color: oklch(54.8% 0.205 336.0);
Tailwind
colors: {
  custom: {
    50: '#ce74ba',
    500: '#b42e9d',
    950: '#000000',
  },
}
SCSS
$custom: #b42e9d;
$custom-light: #ce74ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e9d",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 310.299,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54757,
    "c": 0.20509,
    "h": 336
  },
  "luminance": 0.14092
}

Semantic roles & 50–950 ramp

primary
#B42E9D
secondary
#77C785
accent
#E26045
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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