#B42799#B42799

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

Color values

HEX#B42799
RGBrgb(180, 39, 153)
HSLhsl(311, 64%, 43%)
HSVhsv(311, 78%, 71%)
CMYKcmyk(0%, 78.3%, 15%, 29.4%)
CIE-LABlab(43.44, 65.41, -29.64)
CIE-LCHlch(43.44, 71.81, 335.62°)
OKLaboklab(54.03% 0.1932 -0.0807)
OKLCHoklch(54.03% 0.209 337.3)
XYZxyz(25.2982, 13.4567, 31.3959)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42799 #27B442
analogous
#8827B4 #B42799 #B42753
triadic
#B42799 #99B427 #2799B4
tetradic
#B42799 #B48827 #27B442 #2753B4
square
#B42799 #B48827 #27B442 #2753B4
split-complementary
#B42799 #53B427 #27B488
monochromatic
#4F1143 #821C6E #B42799 #D642BA #E174CC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B42799#FFFFFF#000000##FFFFFF
##B427991.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)
#2C599C
Deuteranopia (green-blind)
#5E6E96
Tritanopia (blue-blind)
#BE305E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42799;
/* rgb */ color: rgb(180, 39, 153);
/* oklch */ color: oklch(54.0% 0.209 337.3);
Tailwind
colors: {
  custom: {
    50: '#cf72b7',
    500: '#b42799',
    950: '#000000',
  },
}
SCSS
$custom: #b42799;
$custom-light: #cf72b7;
$custom-dark: #000000;
JSON
{
  "hex": "#b42799",
  "rgb": {
    "r": 180,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 311.489,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54029,
    "c": 0.20937,
    "h": 337.3
  },
  "luminance": 0.13454
}

Semantic roles & 50–950 ramp

primary
#B42799
secondary
#6FC880
accent
#E76040
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42799

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

Preview Lab → · Contrast checker → · Palette generator →

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