#B42497#B42497

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

Color values

HEX#B42497
RGBrgb(180, 36, 151)
HSLhsl(312, 67%, 42%)
HSVhsv(312, 80%, 71%)
CMYKcmyk(0%, 80%, 16.1%, 29.4%)
CIE-LABlab(43.07, 65.93, -29.03)
CIE-LCHlch(43.07, 72.04, 336.24°)
OKLaboklab(53.73% 0.1955 -0.0789)
OKLCHoklch(53.73% 0.211 338)
XYZxyz(25.0398, 13.2019, 30.5017)
Luminance0.1320 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42497 #24B441
analogous
#8924B4 #B42497 #B4244F
triadic
#B42497 #97B424 #2497B4
tetradic
#B42497 #B48924 #24B441 #244FB4
square
#B42497 #B48924 #24B441 #244FB4
split-complementary
#B42497 #4FB424 #24B489
monochromatic
#4E1041 #811A6C #B42497 #D83DB9 #E270CB

Accessibility & contrast

On white

5.77
#B42497 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B42497 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42497
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42497#FFFFFF#000000##FFFFFF
##B424971.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C589A
Deuteranopia (green-blind)
#5E6D94
Tritanopia (blue-blind)
#BE2D5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42497;
/* rgb */ color: rgb(180, 36, 151);
/* oklch */ color: oklch(53.7% 0.211 338.0);
Tailwind
colors: {
  custom: {
    50: '#cf71b6',
    500: '#b42497',
    950: '#000000',
  },
}
SCSS
$custom: #b42497;
$custom-light: #cf71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42497",
  "rgb": {
    "r": 180,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 312.083,
    "s": 66.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53726,
    "c": 0.21078,
    "h": 338
  },
  "luminance": 0.13199
}

Semantic roles & 50–950 ramp

primary
#B42497
secondary
#6BC97E
accent
#EA613E
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42497

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

Preview Lab → · Contrast checker → · Palette generator →

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