#B42A7B#B42A7B

#B42A7B is a mid, vivid pink. Relative luminance 0.128; OKLCH L 52.9% C 0.189 H 349.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#B42A7B
RGBrgb(180, 42, 123)
HSLhsl(325, 62%, 44%)
HSVhsv(325, 77%, 71%)
CMYKcmyk(0%, 76.7%, 31.7%, 29.4%)
CIE-LABlab(42.45, 60.67, -12.88)
CIE-LCHlch(42.45, 62.02, 348.01°)
OKLaboklab(52.88% 0.1855 -0.0337)
OKLCHoklch(52.88% 0.189 349.7)
XYZxyz(23.2268, 12.7920, 19.9810)
Luminance0.1279 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42A7B #2AB463
analogous
#A82AB4 #B42A7B #B42A36
triadic
#B42A7B #7BB42A #2A7BB4
tetradic
#B42A7B #B4A82A #2AB463 #2A36B4
square
#B42A7B #B4A82A #2AB463 #2A36B4
split-complementary
#B42A7B #36B42A #2AB4A8
monochromatic
#511337 #821E59 #B42A7B #D4479A #E079B5

Accessibility & contrast

On white

5.90
#B42A7B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#B42A7B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42A7B
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42A7B#FFFFFF#000000##FFFFFF
##B42A7B1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41557D
Deuteranopia (green-blind)
#696D78
Tritanopia (blue-blind)
#C1214F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b42a7b;
/* rgb */ color: rgb(180, 42, 123);
/* oklch */ color: oklch(52.9% 0.189 349.7);
Tailwind
colors: {
  custom: {
    50: '#cf72a1',
    500: '#b42a7b',
    950: '#000000',
  },
}
SCSS
$custom: #b42a7b;
$custom-light: #cf72a1;
$custom-dark: #000000;
JSON
{
  "hex": "#b42a7b",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 324.783,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.52884,
    "c": 0.18855,
    "h": 349.7
  },
  "luminance": 0.12789
}

Semantic roles & 50–950 ramp

primary
#B42A7B
secondary
#72C895
accent
#E58643
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14090F
muted
#837B7E

Preview Lab

Preview with #B42A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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