#B42698#B42698

#B42698 is a mid, highly saturated pink. Relative luminance 0.134; OKLCH L 53.9% C 0.210 H 337.7°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B42698
RGBrgb(180, 38, 152)
HSLhsl(312, 65%, 43%)
HSVhsv(312, 79%, 71%)
CMYKcmyk(0%, 78.9%, 15.6%, 29.4%)
CIE-LABlab(43.30, 65.54, -29.26)
CIE-LCHlch(43.30, 71.78, 335.94°)
OKLaboklab(53.91% 0.194 -0.0796)
OKLCHoklch(53.91% 0.21 337.7)
XYZxyz(25.1836, 13.3590, 30.9519)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42698 #26B442
analogous
#8926B4 #B42698 #B42651
triadic
#B42698 #98B426 #2698B4
tetradic
#B42698 #B48926 #26B442 #2651B4
square
#B42698 #B48926 #26B442 #2651B4
split-complementary
#B42698 #51B426 #26B489
monochromatic
#4F1143 #811B6D #B42698 #D740B9 #E173CC

Accessibility & contrast

On white

5.72
#B42698 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B42698 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42698
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42698#FFFFFF#000000##FFFFFF
##B426981.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#BE2F5E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42698;
/* rgb */ color: rgb(180, 38, 152);
/* oklch */ color: oklch(53.9% 0.210 337.7);
Tailwind
colors: {
  custom: {
    50: '#cf71b6',
    500: '#b42698',
    950: '#000000',
  },
}
SCSS
$custom: #b42698;
$custom-light: #cf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42698",
  "rgb": {
    "r": 180,
    "g": 38,
    "b": 152
  },
  "hsl": {
    "h": 311.831,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53909,
    "c": 0.20964,
    "h": 337.7
  },
  "luminance": 0.13357
}

Semantic roles & 50–950 ramp

primary
#B42698
secondary
#6DC97F
accent
#E86140
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42698

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

Preview Lab → · Contrast checker → · Palette generator →

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