#B42997#B42997

#B42997 is a mid, highly saturated pink. Relative luminance 0.135; OKLCH L 54.1% C 0.206 H 338.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#B42997
RGBrgb(180, 41, 151)
HSLhsl(313, 63%, 43%)
HSVhsv(313, 77%, 71%)
CMYKcmyk(0%, 77.2%, 16.1%, 29.4%)
CIE-LABlab(43.55, 64.56, -28.28)
CIE-LCHlch(43.55, 70.48, 336.35°)
OKLaboklab(54.07% 0.1913 -0.0768)
OKLCHoklch(54.07% 0.206 338.1)
XYZxyz(25.2018, 13.5260, 30.5557)
Luminance0.1352 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42997 #29B446
analogous
#8B29B4 #B42997 #B42951
triadic
#B42997 #97B429 #2997B4
tetradic
#B42997 #B48B29 #29B446 #2951B4
square
#B42997 #B48B29 #29B446 #2951B4
split-complementary
#B42997 #51B429 #29B48B
monochromatic
#501243 #821E6D #B42997 #D545B7 #E077CA

Accessibility & contrast

On white

5.67
#B42997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42997
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42997#FFFFFF#000000##FFFFFF
##B429971.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#606E94
Tritanopia (blue-blind)
#BE315E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42997;
/* rgb */ color: rgb(180, 41, 151);
/* oklch */ color: oklch(54.1% 0.206 338.1);
Tailwind
colors: {
  custom: {
    50: '#cf72b6',
    500: '#b42997',
    950: '#000000',
  },
}
SCSS
$custom: #b42997;
$custom-light: #cf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42997",
  "rgb": {
    "r": 180,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 312.518,
    "s": 62.896,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54071,
    "c": 0.20614,
    "h": 338.1
  },
  "luminance": 0.13524
}

Semantic roles & 50–950 ramp

primary
#B42997
secondary
#71C883
accent
#E66442
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42997

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

Preview Lab → · Contrast checker → · Palette generator →

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