#B12871#B12871

#B12871 is a mid, vivid pink. Relative luminance 0.121; OKLCH L 51.8% C 0.184 H 353.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#B12871
RGBrgb(177, 40, 113)
HSLhsl(328, 63%, 43%)
HSVhsv(328, 77%, 69%)
CMYKcmyk(0%, 77.4%, 36.2%, 30.6%)
CIE-LABlab(41.31, 59.37, -8.45)
CIE-LCHlch(41.31, 59.97, 351.90°)
OKLaboklab(51.83% 0.1823 -0.0216)
OKLCHoklch(51.83% 0.184 353.2)
XYZxyz(21.8723, 12.0596, 16.7955)
Luminance0.1206 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12871 #28B168
analogous
#AC28B1 #B12871 #B1282D
triadic
#B12871 #71B128 #2871B1
tetradic
#B12871 #B1AC28 #28B168 #282DB1
square
#B12871 #B1AC28 #28B168 #282DB1
split-complementary
#B12871 #2DB128 #28B1AC
monochromatic
#4D1131 #7F1D51 #B12871 #D44290 #E074AD

Accessibility & contrast

On white

6.16
#B12871 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#B12871 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12871
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12871#FFFFFF#000000##FFFFFF
##B128711.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435273
Deuteranopia (green-blind)
#696A6E
Tritanopia (blue-blind)
#BF1949
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b12871;
/* rgb */ color: rgb(177, 40, 113);
/* oklch */ color: oklch(51.8% 0.184 353.2);
Tailwind
colors: {
  custom: {
    50: '#cd7099',
    500: '#b12871',
    950: '#000000',
  },
}
SCSS
$custom: #b12871;
$custom-light: #cd7099;
$custom-dark: #000000;
JSON
{
  "hex": "#b12871",
  "rgb": {
    "r": 177,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 328.029,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.51832,
    "c": 0.18354,
    "h": 353.2
  },
  "luminance": 0.12057
}

Semantic roles & 50–950 ramp

primary
#B12871
secondary
#6EC797
accent
#E68E42
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #B12871

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

Preview Lab → · Contrast checker → · Palette generator →

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