#B4187F#B4187F

#B4187F is a mid, highly saturated pink. Relative luminance 0.119; OKLCH L 51.9% C 0.206 H 347.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#B4187F
RGBrgb(180, 24, 127)
HSLhsl(320, 76%, 40%)
HSVhsv(320, 87%, 71%)
CMYKcmyk(0%, 86.7%, 29.4%, 29.4%)
CIE-LABlab(41.04, 65.62, -17.50)
CIE-LCHlch(41.04, 67.91, 345.07°)
OKLaboklab(51.92% 0.2005 -0.0463)
OKLCHoklch(51.92% 0.206 347)
XYZxyz(22.9810, 11.8916, 21.1597)
Luminance0.1189 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4187F #18B44D
analogous
#9B18B4 #B4187F #B41831
triadic
#B4187F #7FB418 #187FB4
tetradic
#B4187F #B49B18 #18B44D #1831B4
square
#B4187F #B49B18 #18B44D #1831B4
split-complementary
#B4187F #31B418 #18B49B
monochromatic
#480A33 #7E1159 #B4187F #E227A3 #E95DBA

Accessibility & contrast

On white

6.22
#B4187F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#B4187F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4187F
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4187F#FFFFFF#000000##FFFFFF
##B4187F1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355081
Deuteranopia (green-blind)
#646A7C
Tritanopia (blue-blind)
#C10D4C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b4187f;
/* rgb */ color: rgb(180, 24, 127);
/* oklch */ color: oklch(51.9% 0.206 347.0);
Tailwind
colors: {
  custom: {
    50: '#cf6ca4',
    500: '#b4187f',
    950: '#000000',
  },
}
SCSS
$custom: #b4187f;
$custom-light: #cf6ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#b4187f",
  "rgb": {
    "r": 180,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 320.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.51917,
    "c": 0.20575,
    "h": 347
  },
  "luminance": 0.11889
}

Semantic roles & 50–950 ramp

primary
#B4187F
secondary
#5BCD82
accent
#F37535
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#15080F
muted
#837B7F

Preview Lab

Preview with #B4187F

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

Preview Lab → · Contrast checker → · Palette generator →

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