#B42797#B42797

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

Color values

HEX#B42797
RGBrgb(180, 39, 151)
HSLhsl(312, 64%, 43%)
HSVhsv(312, 78%, 71%)
CMYKcmyk(0%, 78.3%, 16.1%, 29.4%)
CIE-LABlab(43.35, 65.13, -28.59)
CIE-LCHlch(43.35, 71.12, 336.30°)
OKLaboklab(53.93% 0.193 -0.0776)
OKLCHoklch(53.93% 0.208 338.1)
XYZxyz(25.1344, 13.3912, 30.5332)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42797 #27B444
analogous
#8A27B4 #B42797 #B42751
triadic
#B42797 #97B427 #2797B4
tetradic
#B42797 #B48A27 #27B444 #2751B4
square
#B42797 #B48A27 #27B444 #2751B4
split-complementary
#B42797 #51B427 #27B48A
monochromatic
#4F1143 #821C6D #B42797 #D642B8 #E174CB

Accessibility & contrast

On white

5.71
#B42797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#B42797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42797
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42797#FFFFFF#000000##FFFFFF
##B427971.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599A
Deuteranopia (green-blind)
#5F6E94
Tritanopia (blue-blind)
#BE2F5D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b42797;
/* rgb */ color: rgb(180, 39, 151);
/* oklch */ color: oklch(53.9% 0.208 338.1);
Tailwind
colors: {
  custom: {
    50: '#cf72b6',
    500: '#b42797',
    950: '#000000',
  },
}
SCSS
$custom: #b42797;
$custom-light: #cf72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42797",
  "rgb": {
    "r": 180,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 312.34,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53928,
    "c": 0.20805,
    "h": 338.1
  },
  "luminance": 0.13389
}

Semantic roles & 50–950 ramp

primary
#B42797
secondary
#6FC881
accent
#E76340
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42797

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

Preview Lab → · Contrast checker → · Palette generator →

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