#B42F97#B42F97

#B42F97 is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.5% C 0.200 H 338.3°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#B42F97
RGBrgb(180, 47, 151)
HSLhsl(313, 59%, 45%)
HSVhsv(313, 74%, 71%)
CMYKcmyk(0%, 73.9%, 16.1%, 29.4%)
CIE-LABlab(44.19, 62.71, -27.26)
CIE-LCHlch(44.19, 68.38, 336.50°)
OKLaboklab(54.54% 0.1857 -0.0739)
OKLCHoklch(54.54% 0.2 338.3)
XYZxyz(25.4254, 13.9731, 30.6302)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F97 #2FB44C
analogous
#8F2FB4 #B42F97 #B42F54
triadic
#B42F97 #97B42F #2F97B4
tetradic
#B42F97 #B48F2F #2FB44C #2F54B4
square
#B42F97 #B48F2F #2FB44C #2F54B4
split-complementary
#B42F97 #54B42F #2FB48F
monochromatic
#531646 #83226E #B42F97 #D14FB5 #DE80C9

Accessibility & contrast

On white

5.53
#B42F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B42F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F97
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F97#FFFFFF#000000##FFFFFF
##B42F971.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355B9A
Deuteranopia (green-blind)
#627094
Tritanopia (blue-blind)
#BE3660
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42f97;
/* rgb */ color: rgb(180, 47, 151);
/* oklch */ color: oklch(54.5% 0.200 338.3);
Tailwind
colors: {
  custom: {
    50: '#ce75b6',
    500: '#b42f97',
    950: '#000000',
  },
}
SCSS
$custom: #b42f97;
$custom-light: #ce75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f97",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 313.083,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54539,
    "c": 0.19992,
    "h": 338.3
  },
  "luminance": 0.13971
}

Semantic roles & 50–950 ramp

primary
#B42F97
secondary
#78C789
accent
#E26846
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42F97

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

Preview Lab → · Contrast checker → · Palette generator →

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