#B42098#B42098

#B42098 is a mid, highly saturated pink. Relative luminance 0.130; OKLCH L 53.5% C 0.215 H 337.6°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#B42098
RGBrgb(180, 32, 152)
HSLhsl(311, 70%, 42%)
HSVhsv(311, 82%, 71%)
CMYKcmyk(0%, 82.2%, 15.6%, 29.4%)
CIE-LABlab(42.77, 67.06, -30.09)
CIE-LCHlch(42.77, 73.50, 335.83°)
OKLaboklab(53.53% 0.1985 -0.0819)
OKLCHoklch(53.53% 0.215 337.6)
XYZxyz(25.0070, 13.0058, 30.8931)
Luminance0.1300 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42098 #20B43C
analogous
#8620B4 #B42098 #B4204E
triadic
#B42098 #98B420 #2098B4
tetradic
#B42098 #B48620 #20B43C #204EB4
square
#B42098 #B48620 #20B43C #204EB4
split-complementary
#B42098 #4EB420 #20B486
monochromatic
#4C0E40 #80176C #B42098 #DB36BC #E46ACD

Accessibility & contrast

On white

5.83
#B42098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#B42098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42098
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42098#FFFFFF#000000##FFFFFF
##B420981.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#5D6D95
Tritanopia (blue-blind)
#BE2B5C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42098;
/* rgb */ color: rgb(180, 32, 152);
/* oklch */ color: oklch(53.5% 0.215 337.6);
Tailwind
colors: {
  custom: {
    50: '#cf6fb6',
    500: '#b42098',
    950: '#000000',
  },
}
SCSS
$custom: #b42098;
$custom-light: #cf6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42098",
  "rgb": {
    "r": 180,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 311.351,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53531,
    "c": 0.21475,
    "h": 337.6
  },
  "luminance": 0.13003
}

Semantic roles & 50–950 ramp

primary
#B42098
secondary
#66CA79
accent
#ED5D3B
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42098

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

Preview Lab → · Contrast checker → · Palette generator →

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