#B12788#B12788

#B12788 is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.197 H 343.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#B12788
RGBrgb(177, 39, 136)
HSLhsl(318, 64%, 42%)
HSVhsv(318, 78%, 69%)
CMYKcmyk(0%, 78%, 23.2%, 30.6%)
CIE-LABlab(42.12, 62.41, -21.42)
CIE-LCHlch(42.12, 65.99, 341.06°)
OKLaboklab(52.72% 0.1883 -0.0574)
OKLCHoklch(52.72% 0.197 343.1)
XYZxyz(23.3018, 12.5782, 24.4885)
Luminance0.1258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12788 #27B150
analogous
#9527B1 #B12788 #B12743
triadic
#B12788 #88B127 #2788B1
tetradic
#B12788 #B19527 #27B150 #2743B1
square
#B12788 #B19527 #27B150 #2743B1
split-complementary
#B12788 #43B127 #27B195
monochromatic
#4D113B #7F1C61 #B12788 #D540A9 #E072BF

Accessibility & contrast

On white

5.97
#B12788 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B12788 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12788
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12788#FFFFFF#000000##FFFFFF
##B127881.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37558B
Deuteranopia (green-blind)
#626B85
Tritanopia (blue-blind)
#BD2755
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b12788;
/* rgb */ color: rgb(177, 39, 136);
/* oklch */ color: oklch(52.7% 0.197 343.1);
Tailwind
colors: {
  custom: {
    50: '#cd71ab',
    500: '#b12788',
    950: '#000000',
  },
}
SCSS
$custom: #b12788;
$custom-light: #cd71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#b12788",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 317.826,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52719,
    "c": 0.19683,
    "h": 343.1
  },
  "luminance": 0.12576
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B12788

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

Preview Lab → · Contrast checker → · Palette generator →

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