#B12771#B12771

#B12771 is a mid, vivid pink. Relative luminance 0.120; OKLCH L 51.8% C 0.185 H 353.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#B12771
RGBrgb(177, 39, 113)
HSLhsl(328, 64%, 42%)
HSVhsv(328, 78%, 69%)
CMYKcmyk(0%, 78%, 36.2%, 30.6%)
CIE-LABlab(41.21, 59.67, -8.61)
CIE-LCHlch(41.21, 60.29, 351.79°)
OKLaboklab(51.76% 0.1832 -0.022)
OKLCHoklch(51.76% 0.185 353.1)
XYZxyz(21.8390, 11.9931, 16.7844)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12771 #27B167
analogous
#AC27B1 #B12771 #B1272C
triadic
#B12771 #71B127 #2771B1
tetradic
#B12771 #B1AC27 #27B167 #272CB1
square
#B12771 #B1AC27 #27B167 #272CB1
split-complementary
#B12771 #2CB127 #27B1AC
monochromatic
#4D1131 #7F1C51 #B12771 #D54090 #E072AD

Accessibility & contrast

On white

6.18
#B12771 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#B12771 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12771
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12771#FFFFFF#000000##FFFFFF
##B127711.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b12771;
/* rgb */ color: rgb(177, 39, 113);
/* oklch */ color: oklch(51.8% 0.185 353.1);
Tailwind
colors: {
  custom: {
    50: '#cd7099',
    500: '#b12771',
    950: '#000000',
  },
}
SCSS
$custom: #b12771;
$custom-light: #cd7099;
$custom-dark: #000000;
JSON
{
  "hex": "#b12771",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 327.826,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51755,
    "c": 0.18453,
    "h": 353.1
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#B12771
secondary
#6DC797
accent
#E78E41
background
#FDF7F9
surface
#FAEDF2
border
#D3C8CC
text
#14080E
muted
#837B7E

Preview Lab

Preview with #B12771

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

Preview Lab → · Contrast checker → · Palette generator →

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