#B42E9F#B42E9F

#B42E9F is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.206 H 335.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B42E9F
RGBrgb(180, 46, 159)
HSLhsl(309, 59%, 44%)
HSVhsv(309, 74%, 71%)
CMYKcmyk(0%, 74.4%, 11.7%, 29.4%)
CIE-LABlab(44.47, 64.19, -31.64)
CIE-LCHlch(44.47, 71.56, 333.76°)
OKLaboklab(54.86% 0.1875 -0.0864)
OKLCHoklch(54.86% 0.206 335.3)
XYZxyz(26.0577, 14.1628, 34.1555)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E9F #2EB443
analogous
#862EB4 #B42E9F #B42E5C
triadic
#B42E9F #9FB42E #2E9FB4
tetradic
#B42E9F #B4862E #2EB443 #2E5CB4
square
#B42E9F #B4862E #2EB443 #2E5CB4
split-complementary
#B42E9F #5CB42E #2EB486
monochromatic
#531549 #832274 #B42E9F #D24EBD #DE7ECF

Accessibility & contrast

On white

5.48
#B42E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B42E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E9F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E9F#FFFFFF#000000##FFFFFF
##B42E9F1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA2
Deuteranopia (green-blind)
#5E709C
Tritanopia (blue-blind)
#BD3964
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42e9f;
/* rgb */ color: rgb(180, 46, 159);
/* oklch */ color: oklch(54.9% 0.206 335.3);
Tailwind
colors: {
  custom: {
    50: '#ce75bc',
    500: '#b42e9f',
    950: '#000000',
  },
}
SCSS
$custom: #b42e9f;
$custom-light: #ce75bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e9f",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 309.403,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.20647,
    "h": 335.3
  },
  "luminance": 0.1416
}

Semantic roles & 50–950 ramp

primary
#B42E9F
secondary
#77C784
accent
#E25E45
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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