#B42F8B#B42F8B

#B42F8B is a mid, vivid pink. Relative luminance 0.136; OKLCH L 54.0% C 0.192 H 343.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#B42F8B
RGBrgb(180, 47, 139)
HSLhsl(318, 59%, 45%)
HSVhsv(318, 74%, 71%)
CMYKcmyk(0%, 73.9%, 22.8%, 29.4%)
CIE-LABlab(43.66, 61.06, -20.83)
CIE-LCHlch(43.66, 64.52, 341.16°)
OKLaboklab(53.97% 0.1839 -0.0557)
OKLCHoklch(53.97% 0.192 343.1)
XYZxyz(24.5000, 13.6030, 25.7565)
Luminance0.1360 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F8B #2FB458
analogous
#9A2FB4 #B42F8B #B42F49
triadic
#B42F8B #8BB42F #2F8BB4
tetradic
#B42F8B #B49A2F #2FB458 #2F49B4
square
#B42F8B #B49A2F #2FB458 #2F49B4
split-complementary
#B42F8B #49B42F #2FB49A
monochromatic
#531640 #832266 #B42F8B #D14FA9 #DE80C1

Accessibility & contrast

On white

5.65
#B42F8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B42F8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F8B
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F8B#FFFFFF#000000##FFFFFF
##B42F8B1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D598E
Deuteranopia (green-blind)
#666F88
Tritanopia (blue-blind)
#C02F59
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b42f8b;
/* rgb */ color: rgb(180, 47, 139);
/* oklch */ color: oklch(54.0% 0.192 343.1);
Tailwind
colors: {
  custom: {
    50: '#ce74ad',
    500: '#b42f8b',
    950: '#000000',
  },
}
SCSS
$custom: #b42f8b;
$custom-light: #ce74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f8b",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 318.496,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53975,
    "c": 0.19219,
    "h": 343.1
  },
  "luminance": 0.136
}

Semantic roles & 50–950 ramp

primary
#B42F8B
secondary
#78C790
accent
#E27646
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B42F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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