#B42898#B42898

#B42898 is a mid, highly saturated pink. Relative luminance 0.135; OKLCH L 54.0% C 0.208 H 337.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#B42898
RGBrgb(180, 40, 152)
HSLhsl(312, 64%, 43%)
HSVhsv(312, 78%, 71%)
CMYKcmyk(0%, 77.8%, 15.6%, 29.4%)
CIE-LABlab(43.49, 64.99, -28.96)
CIE-LCHlch(43.49, 71.15, 335.98°)
OKLaboklab(54.05% 0.1923 -0.0787)
OKLCHoklch(54.05% 0.208 337.7)
XYZxyz(25.2492, 13.4903, 30.9738)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42898 #28B444
analogous
#8A28B4 #B42898 #B42852
triadic
#B42898 #98B428 #2898B4
tetradic
#B42898 #B48A28 #28B444 #2852B4
square
#B42898 #B48A28 #28B444 #2852B4
split-complementary
#B42898 #52B428 #28B48A
monochromatic
#501243 #821D6E #B42898 #D544B8 #E176CB

Accessibility & contrast

On white

5.68
#B42898 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B42898 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42898
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42898#FFFFFF#000000##FFFFFF
##B428981.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599B
Deuteranopia (green-blind)
#5F6E95
Tritanopia (blue-blind)
#BE315E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42898;
/* rgb */ color: rgb(180, 40, 152);
/* oklch */ color: oklch(54.0% 0.208 337.7);
Tailwind
colors: {
  custom: {
    50: '#cf72b6',
    500: '#b42898',
    950: '#000000',
  },
}
SCSS
$custom: #b42898;
$custom-light: #cf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42898",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 312,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54048,
    "c": 0.20777,
    "h": 337.7
  },
  "luminance": 0.13488
}

Semantic roles & 50–950 ramp

primary
#B42898
secondary
#70C881
accent
#E76241
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42898

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

Preview Lab → · Contrast checker → · Palette generator →

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