#B42E9C#B42E9C

#B42E9C is a mid, highly saturated pink. Relative luminance 0.141; OKLCH L 54.7% C 0.204 H 336.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B42E9C
RGBrgb(180, 46, 156)
HSLhsl(311, 59%, 44%)
HSVhsv(311, 74%, 71%)
CMYKcmyk(0%, 74.4%, 13.3%, 29.4%)
CIE-LABlab(44.32, 63.75, -30.07)
CIE-LCHlch(44.32, 70.49, 334.74°)
OKLaboklab(54.71% 0.1873 -0.0819)
OKLCHoklch(54.71% 0.204 336.4)
XYZxyz(25.8006, 14.0600, 32.8011)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42E9C #2EB446
analogous
#892EB4 #B42E9C #B42E59
triadic
#B42E9C #9CB42E #2E9CB4
tetradic
#B42E9C #B4892E #2EB446 #2E59B4
square
#B42E9C #B4892E #2EB446 #2E59B4
split-complementary
#B42E9C #59B42E #2EB489
monochromatic
#531548 #832272 #B42E9C #D24EBA #DE7ECD

Accessibility & contrast

On white

5.51
#B42E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B42E9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42E9C
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42E9C#FFFFFF#000000##FFFFFF
##B42E9C1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315C9F
Deuteranopia (green-blind)
#5F7099
Tritanopia (blue-blind)
#BD3762
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42e9c;
/* rgb */ color: rgb(180, 46, 156);
/* oklch */ color: oklch(54.7% 0.204 336.4);
Tailwind
colors: {
  custom: {
    50: '#ce74b9',
    500: '#b42e9c',
    950: '#000000',
  },
}
SCSS
$custom: #b42e9c;
$custom-light: #ce74b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42e9c",
  "rgb": {
    "r": 180,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 310.746,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54706,
    "c": 0.2044,
    "h": 336.4
  },
  "luminance": 0.14058
}

Semantic roles & 50–950 ramp

primary
#B42E9C
secondary
#77C785
accent
#E26145
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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