#B42E9B#B42E9B

#B42E9B is a mid, highly saturated pink. Relative luminance 0.140; OKLCH L 54.7% C 0.204 H 336.7°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B42E9B
RGBrgb(180, 46, 155)
HSLhsl(311, 59%, 44%)
HSVhsv(311, 74%, 71%)
CMYKcmyk(0%, 74.4%, 13.9%, 29.4%)
CIE-LABlab(44.27, 63.60, -29.55)
CIE-LCHlch(44.27, 70.13, 335.08°)
OKLaboklab(54.66% 0.1872 -0.0804)
OKLCHoklch(54.66% 0.204 336.7)
XYZxyz(25.7162, 14.0262, 32.3570)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E9B #2EB447
analogous
#8A2EB4 #B42E9B #B42E58
triadic
#B42E9B #9BB42E #2E9BB4
tetradic
#B42E9B #B48A2E #2EB447 #2E58B4
square
#B42E9B #B48A2E #2EB447 #2E58B4
split-complementary
#B42E9B #58B42E #2EB48A
monochromatic
#531547 #832271 #B42E9B #D24EB9 #DE7ECC

Accessibility & contrast

On white

5.52
#B42E9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#B42E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E9B
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E9B#FFFFFF#000000##FFFFFF
##B42E9B1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315C9E
Deuteranopia (green-blind)
#607098
Tritanopia (blue-blind)
#BE3761
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42e9b;
/* rgb */ color: rgb(180, 46, 155);
/* oklch */ color: oklch(54.7% 0.204 336.7);
Tailwind
colors: {
  custom: {
    50: '#ce74b9',
    500: '#b42e9b',
    950: '#000000',
  },
}
SCSS
$custom: #b42e9b;
$custom-light: #ce74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e9b",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 311.194,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54656,
    "c": 0.20371,
    "h": 336.7
  },
  "luminance": 0.14024
}

Semantic roles & 50–950 ramp

primary
#B42E9B
secondary
#77C786
accent
#E26345
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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