#B12786#B12786

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

Color values

HEX#B12786
RGBrgb(177, 39, 134)
HSLhsl(319, 64%, 42%)
HSVhsv(319, 78%, 69%)
CMYKcmyk(0%, 78%, 24.3%, 30.6%)
CIE-LABlab(42.03, 62.16, -20.33)
CIE-LCHlch(42.03, 65.40, 341.89°)
OKLaboklab(52.63% 0.1879 -0.0543)
OKLCHoklch(52.63% 0.196 343.9)
XYZxyz(23.1610, 12.5219, 23.7469)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12786 #27B152
analogous
#9727B1 #B12786 #B12741
triadic
#B12786 #86B127 #2786B1
tetradic
#B12786 #B19727 #27B152 #2741B1
square
#B12786 #B19727 #27B152 #2741B1
split-complementary
#B12786 #41B127 #27B197
monochromatic
#4D113A #7F1C60 #B12786 #D540A7 #E072BE

Accessibility & contrast

On white

5.99
#B12786 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#B12786 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12786
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12786#FFFFFF#000000##FFFFFF
##B127861.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385588
Deuteranopia (green-blind)
#636B83
Tritanopia (blue-blind)
#BD2654
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b12786;
/* rgb */ color: rgb(177, 39, 134);
/* oklch */ color: oklch(52.6% 0.196 343.9);
Tailwind
colors: {
  custom: {
    50: '#cd70a9',
    500: '#b12786',
    950: '#000000',
  },
}
SCSS
$custom: #b12786;
$custom-light: #cd70a9;
$custom-dark: #000000;
JSON
{
  "hex": "#b12786",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 318.696,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52628,
    "c": 0.19563,
    "h": 343.9
  },
  "luminance": 0.12519
}

Semantic roles & 50–950 ramp

primary
#B12786
secondary
#6DC789
accent
#E77541
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B12786

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

Preview Lab → · Contrast checker → · Palette generator →

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