#B12787#B12787

#B12787 is a mid, vivid pink. Relative luminance 0.125; OKLCH L 52.7% C 0.196 H 343.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B12787
RGBrgb(177, 39, 135)
HSLhsl(318, 64%, 42%)
HSVhsv(318, 78%, 69%)
CMYKcmyk(0%, 78%, 23.7%, 30.6%)
CIE-LABlab(42.08, 62.29, -20.87)
CIE-LCHlch(42.08, 65.69, 341.47°)
OKLaboklab(52.67% 0.1881 -0.0558)
OKLCHoklch(52.67% 0.196 343.5)
XYZxyz(23.2311, 12.5499, 24.1159)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12787 #27B151
analogous
#9627B1 #B12787 #B12742
triadic
#B12787 #87B127 #2787B1
tetradic
#B12787 #B19627 #27B151 #2742B1
square
#B12787 #B19627 #27B151 #2742B1
split-complementary
#B12787 #42B127 #27B196
monochromatic
#4D113B #7F1C61 #B12787 #D540A8 #E072BF

Accessibility & contrast

On white

5.98
#B12787 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B12787 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12787
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12787#FFFFFF#000000##FFFFFF
##B127871.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37558A
Deuteranopia (green-blind)
#636B84
Tritanopia (blue-blind)
#BD2754
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b12787;
/* rgb */ color: rgb(177, 39, 135);
/* oklch */ color: oklch(52.7% 0.196 343.5);
Tailwind
colors: {
  custom: {
    50: '#cd71aa',
    500: '#b12787',
    950: '#000000',
  },
}
SCSS
$custom: #b12787;
$custom-light: #cd71aa;
$custom-dark: #000000;
JSON
{
  "hex": "#b12787",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 318.261,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52673,
    "c": 0.19623,
    "h": 343.5
  },
  "luminance": 0.12547
}

Semantic roles & 50–950 ramp

primary
#B12787
secondary
#6DC788
accent
#E77341
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B12787

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

Preview Lab → · Contrast checker → · Palette generator →

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