#B51186#B51186

#B51186 is a mid, highly saturated pink. Relative luminance 0.119; OKLCH L 52.1% C 0.214 H 344.3°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#B51186
RGBrgb(181, 17, 134)
HSLhsl(317, 83%, 39%)
HSVhsv(317, 91%, 71%)
CMYKcmyk(0%, 90.6%, 26%, 29%)
CIE-LABlab(41.13, 67.82, -21.66)
CIE-LCHlch(41.13, 71.19, 342.29°)
OKLaboklab(52.12% 0.2061 -0.0579)
OKLCHoklch(52.12% 0.214 344.3)
XYZxyz(23.5607, 11.9486, 23.6152)
Luminance0.1195 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B51186 #11B540
analogous
#9211B5 #B51186 #B51134
triadic
#B51186 #86B511 #1186B5
tetradic
#B51186 #B59211 #11B540 #1134B5
square
#B51186 #B59211 #11B540 #1134B5
split-complementary
#B51186 #34B511 #11B592
monochromatic
#450633 #7D0C5D #B51186 #E91AAE #EF52C2

Accessibility & contrast

On white

6.20
#B51186 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#B51186 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B51186
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B51186#FFFFFF#000000##FFFFFF
##B511861.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5089
Deuteranopia (green-blind)
#616A83
Tritanopia (blue-blind)
#C20D4F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #b51186;
/* rgb */ color: rgb(181, 17, 134);
/* oklch */ color: oklch(52.1% 0.214 344.3);
Tailwind
colors: {
  custom: {
    50: '#d06ba9',
    500: '#b51186',
    950: '#000000',
  },
}
SCSS
$custom: #b51186;
$custom-light: #d06ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#b51186",
  "rgb": {
    "r": 181,
    "g": 17,
    "b": 134
  },
  "hsl": {
    "h": 317.195,
    "s": 82.828,
    "l": 38.824
  },
  "oklch": {
    "l": 0.52115,
    "c": 0.21408,
    "h": 344.3
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#B51186
secondary
#51D176
accent
#F9692F
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#150810
muted
#837B7F

Preview Lab

Preview with #B51186

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

Preview Lab → · Contrast checker → · Palette generator →

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