#B31796#B31796

#B31796 is a mid, highly saturated pink. Relative luminance 0.124; OKLCH L 52.8% C 0.219 H 337.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#B31796
RGBrgb(179, 23, 150)
HSLhsl(311, 77%, 40%)
HSVhsv(311, 87%, 70%)
CMYKcmyk(0%, 87.2%, 16.2%, 29.8%)
CIE-LABlab(41.85, 68.45, -30.34)
CIE-LCHlch(41.85, 74.87, 336.09°)
OKLaboklab(52.8% 0.2031 -0.0826)
OKLCHoklch(52.8% 0.219 337.9)
XYZxyz(24.4024, 12.4010, 29.9567)
Luminance0.1240 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31796 #17B334
analogous
#8217B3 #B31796 #B31748
triadic
#B31796 #96B317 #1796B3
tetradic
#B31796 #B38217 #17B334 #1748B3
square
#B31796 #B38217 #17B334 #1748B3
split-complementary
#B31796 #48B317 #17B382
monochromatic
#47093B #7D1069 #B31796 #E324BF #EA5BCF

Accessibility & contrast

On white

6.03
#B31796 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#B31796 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31796
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31796#FFFFFF#000000##FFFFFF
##B317961.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215499
Deuteranopia (green-blind)
#5B6B93
Tritanopia (blue-blind)
#BD2459
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31796;
/* rgb */ color: rgb(179, 23, 150);
/* oklch */ color: oklch(52.8% 0.219 337.9);
Tailwind
colors: {
  custom: {
    50: '#ce6db5',
    500: '#b31796',
    950: '#000000',
  },
}
SCSS
$custom: #b31796;
$custom-light: #ce6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#b31796",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 311.154,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52803,
    "c": 0.21925,
    "h": 337.9
  },
  "luminance": 0.12399
}

Semantic roles & 50–950 ramp

primary
#B31796
secondary
#58CD6E
accent
#F45834
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31796

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

Preview Lab → · Contrast checker → · Palette generator →

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