#B42F9B#B42F9B

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

Color values

HEX#B42F9B
RGBrgb(180, 47, 155)
HSLhsl(311, 59%, 45%)
HSVhsv(311, 74%, 71%)
CMYKcmyk(0%, 73.9%, 13.9%, 29.4%)
CIE-LABlab(44.38, 63.28, -29.37)
CIE-LCHlch(44.38, 69.77, 335.10°)
OKLaboklab(54.74% 0.1862 -0.0799)
OKLCHoklch(54.74% 0.203 336.8)
XYZxyz(25.7558, 14.1053, 32.3701)
Luminance0.1410 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F9B #2FB448
analogous
#8B2FB4 #B42F9B #B42F59
triadic
#B42F9B #9BB42F #2F9BB4
tetradic
#B42F9B #B48B2F #2FB448 #2F59B4
square
#B42F9B #B48B2F #2FB448 #2F59B4
split-complementary
#B42F9B #59B42F #2FB48B
monochromatic
#531647 #832271 #B42F9B #D14FB9 #DE80CC

Accessibility & contrast

On white

5.50
#B42F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B42F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F9B
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F9B#FFFFFF#000000##FFFFFF
##B42F9B1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325C9E
Deuteranopia (green-blind)
#607098
Tritanopia (blue-blind)
#BE3862
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42f9b;
/* rgb */ color: rgb(180, 47, 155);
/* oklch */ color: oklch(54.7% 0.203 336.8);
Tailwind
colors: {
  custom: {
    50: '#ce75b9',
    500: '#b42f9b',
    950: '#000000',
  },
}
SCSS
$custom: #b42f9b;
$custom-light: #ce75b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f9b",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 311.278,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54737,
    "c": 0.20263,
    "h": 336.8
  },
  "luminance": 0.14103
}

Semantic roles & 50–950 ramp

primary
#B42F9B
secondary
#78C787
accent
#E26346
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B42F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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