#B42398#B42398

#B42398 is a mid, highly saturated pink. Relative luminance 0.132; OKLCH L 53.7% C 0.212 H 337.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#B42398
RGBrgb(180, 35, 152)
HSLhsl(312, 67%, 42%)
HSVhsv(312, 81%, 71%)
CMYKcmyk(0%, 80.6%, 15.6%, 29.4%)
CIE-LABlab(43.03, 66.33, -29.69)
CIE-LCHlch(43.03, 72.67, 335.88°)
OKLaboklab(53.71% 0.1963 -0.0808)
OKLCHoklch(53.71% 0.212 337.6)
XYZxyz(25.0915, 13.1748, 30.9212)
Luminance0.1317 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42398 #23B43F
analogous
#8723B4 #B42398 #B42350
triadic
#B42398 #98B423 #2398B4
tetradic
#B42398 #B48723 #23B43F #2350B4
square
#B42398 #B48723 #23B43F #2350B4
split-complementary
#B42398 #50B423 #23B487
monochromatic
#4E0F41 #81196D #B42398 #D93BBA #E36ECC

Accessibility & contrast

On white

5.78
#B42398 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B42398 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42398
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42398#FFFFFF#000000##FFFFFF
##B423981.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589B
Deuteranopia (green-blind)
#5D6D95
Tritanopia (blue-blind)
#BE2D5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42398;
/* rgb */ color: rgb(180, 35, 152);
/* oklch */ color: oklch(53.7% 0.212 337.6);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b42398',
    950: '#000000',
  },
}
SCSS
$custom: #b42398;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42398",
  "rgb": {
    "r": 180,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 311.586,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.21229,
    "h": 337.6
  },
  "luminance": 0.13172
}

Semantic roles & 50–950 ramp

primary
#B42398
secondary
#69C97C
accent
#EA5F3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42398

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

Preview Lab → · Contrast checker → · Palette generator →

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