#B42897#B42897

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

Color values

HEX#B42897
RGBrgb(180, 40, 151)
HSLhsl(312, 64%, 43%)
HSVhsv(312, 78%, 71%)
CMYKcmyk(0%, 77.8%, 16.1%, 29.4%)
CIE-LABlab(43.44, 64.85, -28.43)
CIE-LCHlch(43.44, 70.81, 336.32°)
OKLaboklab(54% 0.1922 -0.0772)
OKLCHoklch(54% 0.207 338.1)
XYZxyz(25.1677, 13.4577, 30.5443)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42897 #28B445
analogous
#8B28B4 #B42897 #B42851
triadic
#B42897 #97B428 #2897B4
tetradic
#B42897 #B48B28 #28B445 #2851B4
square
#B42897 #B48B28 #28B445 #2851B4
split-complementary
#B42897 #51B428 #28B48B
monochromatic
#501243 #821D6D #B42897 #D544B7 #E176CA

Accessibility & contrast

On white

5.69
#B42897 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B42897 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42897
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42897#FFFFFF#000000##FFFFFF
##B428971.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599A
Deuteranopia (green-blind)
#5F6E94
Tritanopia (blue-blind)
#BE305E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42897;
/* rgb */ color: rgb(180, 40, 151);
/* oklch */ color: oklch(54.0% 0.207 338.1);
Tailwind
colors: {
  custom: {
    50: '#cf72b6',
    500: '#b42897',
    950: '#000000',
  },
}
SCSS
$custom: #b42897;
$custom-light: #cf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42897",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 312.429,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53998,
    "c": 0.20711,
    "h": 338.1
  },
  "luminance": 0.13455
}

Semantic roles & 50–950 ramp

primary
#B42897
secondary
#70C882
accent
#E76341
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42897

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

Preview Lab → · Contrast checker → · Palette generator →

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