#B42A9D#B42A9D

#B42A9D is a mid, highly saturated pink. Relative luminance 0.138; OKLCH L 54.4% C 0.209 H 335.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#B42A9D
RGBrgb(180, 42, 157)
HSLhsl(310, 62%, 44%)
HSVhsv(310, 77%, 71%)
CMYKcmyk(0%, 76.7%, 12.8%, 29.4%)
CIE-LABlab(43.94, 65.12, -31.27)
CIE-LCHlch(43.94, 72.24, 334.35°)
OKLaboklab(54.45% 0.191 -0.0853)
OKLCHoklch(54.45% 0.209 335.9)
XYZxyz(25.7366, 13.7959, 33.1992)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42A9D #2AB441
analogous
#862AB4 #B42A9D #B42A58
triadic
#B42A9D #9DB42A #2A9DB4
tetradic
#B42A9D #B4862A #2AB441 #2A58B4
square
#B42A9D #B4862A #2AB441 #2A58B4
split-complementary
#B42A9D #58B42A #2AB486
monochromatic
#511346 #821E72 #B42A9D #D447BD #E079CF

Accessibility & contrast

On white

5.59
#B42A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#B42A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42A9D
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42A9D#FFFFFF#000000##FFFFFF
##B42A9D1.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA0
Deuteranopia (green-blind)
#5E6F9A
Tritanopia (blue-blind)
#BD3561
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42a9d;
/* rgb */ color: rgb(180, 42, 157);
/* oklch */ color: oklch(54.4% 0.209 335.9);
Tailwind
colors: {
  custom: {
    50: '#ce73ba',
    500: '#b42a9d',
    950: '#000000',
  },
}
SCSS
$custom: #b42a9d;
$custom-light: #ce73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b42a9d",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 310,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.20918,
    "h": 335.9
  },
  "luminance": 0.13794
}

Semantic roles & 50–950 ramp

primary
#B42A9D
secondary
#72C880
accent
#E55E43
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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