#B42E97#B42E97

#B42E97 is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.5% C 0.201 H 338.3°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B42E97
RGBrgb(180, 46, 151)
HSLhsl(313, 59%, 44%)
HSVhsv(313, 74%, 71%)
CMYKcmyk(0%, 74.4%, 16.1%, 29.4%)
CIE-LABlab(44.08, 63.03, -27.44)
CIE-LCHlch(44.08, 68.74, 336.47°)
OKLaboklab(54.46% 0.1867 -0.0744)
OKLCHoklch(54.46% 0.201 338.3)
XYZxyz(25.3859, 13.8941, 30.6170)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E97 #2EB44B
analogous
#8E2EB4 #B42E97 #B42E54
triadic
#B42E97 #97B42E #2E97B4
tetradic
#B42E97 #B48E2E #2EB44B #2E54B4
square
#B42E97 #B48E2E #2EB44B #2E54B4
split-complementary
#B42E97 #54B42E #2EB48E
monochromatic
#531545 #83226E #B42E97 #D24EB5 #DE7EC9

Accessibility & contrast

On white

5.56
#B42E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B42E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E97
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E97#FFFFFF#000000##FFFFFF
##B42E971.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345B9A
Deuteranopia (green-blind)
#617094
Tritanopia (blue-blind)
#BE355F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42e97;
/* rgb */ color: rgb(180, 46, 151);
/* oklch */ color: oklch(54.5% 0.201 338.3);
Tailwind
colors: {
  custom: {
    50: '#ce74b6',
    500: '#b42e97',
    950: '#000000',
  },
}
SCSS
$custom: #b42e97;
$custom-light: #ce74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e97",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 312.985,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54457,
    "c": 0.201,
    "h": 338.3
  },
  "luminance": 0.13892
}

Semantic roles & 50–950 ramp

primary
#B42E97
secondary
#77C788
accent
#E26745
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42E97

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

Preview Lab → · Contrast checker → · Palette generator →

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