#B42F9C#B42F9C

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

Color values

HEX#B42F9C
RGBrgb(180, 47, 156)
HSLhsl(311, 59%, 45%)
HSVhsv(311, 74%, 71%)
CMYKcmyk(0%, 73.9%, 13.3%, 29.4%)
CIE-LABlab(44.43, 63.43, -29.90)
CIE-LCHlch(44.43, 70.12, 334.76°)
OKLaboklab(54.79% 0.1863 -0.0815)
OKLCHoklch(54.79% 0.203 336.4)
XYZxyz(25.8401, 14.1390, 32.8142)
Luminance0.1414 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F9C #2FB447
analogous
#8A2FB4 #B42F9C #B42F5A
triadic
#B42F9C #9CB42F #2F9CB4
tetradic
#B42F9C #B48A2F #2FB447 #2F5AB4
square
#B42F9C #B48A2F #2FB447 #2F5AB4
split-complementary
#B42F9C #5AB42F #2FB48A
monochromatic
#531648 #832272 #B42F9C #D14FBA #DE80CD

Accessibility & contrast

On white

5.49
#B42F9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42F9C
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F9C#FFFFFF#000000##FFFFFF
##B42F9C1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325C9F
Deuteranopia (green-blind)
#607099
Tritanopia (blue-blind)
#BD3862
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42f9c;
/* rgb */ color: rgb(180, 47, 156);
/* oklch */ color: oklch(54.8% 0.203 336.4);
Tailwind
colors: {
  custom: {
    50: '#ce75b9',
    500: '#b42f9c',
    950: '#000000',
  },
}
SCSS
$custom: #b42f9c;
$custom-light: #ce75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f9c",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 310.827,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54787,
    "c": 0.20332,
    "h": 336.4
  },
  "luminance": 0.14137
}

Semantic roles & 50–950 ramp

primary
#B42F9C
secondary
#78C786
accent
#E26246
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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