#B42397#B42397

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

Color values

HEX#B42397
RGBrgb(180, 35, 151)
HSLhsl(312, 67%, 42%)
HSVhsv(312, 81%, 71%)
CMYKcmyk(0%, 80.6%, 16.1%, 29.4%)
CIE-LABlab(42.98, 66.19, -29.16)
CIE-LCHlch(42.98, 72.33, 336.22°)
OKLaboklab(53.66% 0.1962 -0.0793)
OKLCHoklch(53.66% 0.212 338)
XYZxyz(25.0099, 13.1422, 30.4917)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42397 #23B440
analogous
#8923B4 #B42397 #B4234F
triadic
#B42397 #97B423 #2397B4
tetradic
#B42397 #B48923 #23B440 #234FB4
square
#B42397 #B48923 #23B440 #234FB4
split-complementary
#B42397 #4FB423 #23B489
monochromatic
#4E0F41 #81196C #B42397 #D93BB9 #E36ECC

Accessibility & contrast

On white

5.79
#B42397 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42397
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42397#FFFFFF#000000##FFFFFF
##B423971.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B579A
Deuteranopia (green-blind)
#5E6D94
Tritanopia (blue-blind)
#BE2C5C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b42397;
/* rgb */ color: rgb(180, 35, 151);
/* oklch */ color: oklch(53.7% 0.212 338.0);
Tailwind
colors: {
  custom: {
    50: '#cf70b6',
    500: '#b42397',
    950: '#000000',
  },
}
SCSS
$custom: #b42397;
$custom-light: #cf70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42397",
  "rgb": {
    "r": 180,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 312,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53662,
    "c": 0.21164,
    "h": 338
  },
  "luminance": 0.1314
}

Semantic roles & 50–950 ramp

primary
#B42397
secondary
#69C97D
accent
#EA603D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42397

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

Preview Lab → · Contrast checker → · Palette generator →

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